Author Topic: Encoding changed  (Read 38544 times)

Offline Newbie0815

  • Multiple posting newcomer
  • *
  • Posts: 61
Encoding changed
« 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.
« Last Edit: September 12, 2008, 04:45:11 pm by Newbie0815 »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Encoding changed
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ