
14 Apr
2011
14 Apr
'11
10:47 p.m.
15.04.2011 1:01, Ryou Ezoe пишет:
But the point is string literal with no encoding prefix is evil. if i write
char s[] = "あいうえお" ;
MSVC use shift-jis encoding.
If you want to use the non-wide utf-8 strings in MSVC, try to store the file as utf-8 WITHOUT the BOM mark. Then, the compiler will store the strings in the executable as is, without any conversion. Unfortunately, the wide strings (L"あいうえお") will be broken in this case. Anyway, it's a problem of the MSVC, not boost. -- Sergey Cheban