News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Encoding changed

Started by Newbie0815, September 12, 2008, 03:41:08 PM

Previous topic - Next topic

Newbie0815

Please forgive me a newbie question, it is my very first experience with this.

I´ve defined a few std::strings, where one of them contains a few characters in polish language, while the rest is all english.
Upon "compile" C::B will notify me: encoding was changed to UTF-8 to prevent me from losing data.

If this is all it takes to have those few polish characters displayed correct, perfectly fine with me, I´m just trying to find the setting, where I can set UTF-8 as default for my application.
Does anyone know?
Or am I completely wrong and I have to convert the whole application to unicode?

Edit:
Well, it doesn´t work, or better it results in problems elsewhere.
Having the whole application in UTF-8 means operations like string.length() don´t work anymore.
I know charset stuff is quite tricky, so I guess I just have to make the whole thing unicode.

MortenMacFly

1.) The default encoding can be setup under: Settings -> Editor -> General settings -> Font -> Default encoding...

Careful:

2.) The way the source code files are encoded has *nothing* (I repeat:) nothing to do with the strings / string handling you are implementing.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]