Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Newbie0815 on September 12, 2008, 03:41:08 pm

Title: Encoding changed
Post by: Newbie0815 on September 12, 2008, 03:41:08 pm
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.
Title: Re: Encoding changed
Post by: MortenMacFly on September 13, 2008, 01:16:35 pm
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.