
14 Apr
2011
14 Apr
'11
8:35 p.m.
Saving source file in UTF-8 with BOM doesn't make MSVC use UTF-8 as char encoding. It's just because ASCII is compatible with UTF-8 encoding. It's still a Multibyte Character Set. I use Windows with Japanese locale. In my environment, string literal with no encoding prefix become Shift-JIS. So this library takes whatever encoding the compiler use for char and use it as unique identifier for a corresponding translated text. If you really want to use UTF-8, then you have to use C++0x's u8 encoding prefix. Not many compiler support it yet though. -- Ryou Ezoe