PDA

View Full Version : source in unicode 4.0



conexion2000
10th August 2007, 09:58
Hi!
I know that Qt 4 internally uses unicode 4.0. I would like to have my source code also in this encoding, so I wouldn't have to use QTextCodec class. Please tell me what encoding should I set in IDE (Code::Blocks) to have Unicode 4.0? There are f.e.: UTF-8, UTF-16 LE, UTF-32 BE and similar.
greetings

marcel
10th August 2007, 12:28
Hi!
I know that Qt 4 internally uses unicode 4.0. I would like to have my source code also in this encoding, so I wouldn't have to use QTextCodec class. Please tell me what encoding should I set in IDE (Code::Blocks) to have Unicode 4.0? There are f.e.: UTF-8, UTF-16 LE, UTF-32 BE and similar.
greetings
You'll have to set a text codec for C strings anyway since QString defaults to Latin-1 in const char* to byte array conversions, so you don't want that.

Regards