User forums > Help

Weird foreign letters problem...

<< < (2/3) > >>

BlueHazzard:
next time use the search. 6 posts ago someone had the exact same problem as you, and there you would find this link: http://forums.codeblocks.org/index.php/topic,22168.msg150872.html#msg150872

5Nick7:

--- Quote from: BlueHazzard on November 22, 2018, 12:29:41 am ---next time use the search. 6 posts ago someone had the exact same problem as you, and there you would find this link: http://forums.codeblocks.org/index.php/topic,22168.msg150872.html#msg150872

--- End quote ---

My problem is that the letters don't save, and change into other foreign letters when I close(, save) and reopen the .cpp file. I looked up the problem someone had ~6 posts ago, but their problem is foreign letters printing other symbols. Though I posted that it happens to me as well, it only happens when I set my file encoding to UTF-8, so as long as I don't do that, the only problem is the problem that is described in my first post.

While your fix provided in the link works, I can not use it, because I must use 'cout << "  " << endl;', 'cin >> x;', etc.

5Nick7:

--- Quote from: oBFusCATed on November 21, 2018, 11:42:18 pm ---You have to tell the compiler that what is the encoding of the file you're give it.

--- End quote ---

Sorry, I do not understand what you want me to do. If you want to know the compiler that I am using - I think it is called 'GNU GCC Compiler', but I do not know the difference in using other compilers or even what they do. Is the problem the compiler that I am using?

oBFusCATed:
I guess writing message just after I've woken is not a good idea.

What I've meant in this post is that the compiler doesn't know the encoding of the source file (if it is different from the default one).
You have to pass an option which tells the compiler this information.
The exact option which has to be passed to your compiler can be found in the documentation of the compiler you're using.

5Nick7:

--- Quote from: oBFusCATed on November 22, 2018, 05:49:04 pm ---I guess writing message just after I've woken is not a good idea.

What I've meant in this post is that the compiler doesn't know the encoding of the source file (if it is different from the default one).
You have to pass an option which tells the compiler this information.
The exact option which has to be passed to your compiler can be found in the documentation of the compiler you're using.

--- End quote ---

Alright, now I understand. But also, I don't. Could you give me a link to some kind of tutorial on how to do this? Like I have said previously, I'm a beginner with Code::Blocks, not much of a 'computer-whiz' either. What you said just sounds like some top-class scientist conspiracy theories to me. :-[

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version