My understanding is that GCC will translate the string into Unicode AS
IS-8859-1. If you want to use correct Unicode, use the form "\xnnnn"
for non-ISO-8859-1 characters.
The MSVC runtime MinGW uses can correctly handle different code pages,
but not at compile-time :-). For MSVC, setlocale is used to set the
runtime code page, #pragma setlocale is used to set the compile-time
code page. GCC seems not to support this kind of stuff.
--- Original Message from Jiri Krivanek ---
I would like to open another topic:
UNICODE in GCC. What is the exac way the GCC interprets the following
string: L"Kakáèek"? The string (where is Kk from) contains two czech
only characters (your windows might missinterpret them - it depends
on your installed locals settings). Will the GCC compile the code (as
it is a constant) the locally used charset or will it convert into
Thanks & best regards,
Kk. Ing. Jiri Krivanek