Boost logo

Boost :

Subject: Re: [boost] Fw: [locale] Formal review of Boost.Locale library
From: Sergey Cheban (s.cheban_at_[hidden])
Date: 2011-04-14 18:47:12

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

Boost list run by bdawes at, gregod at, cpdaniel at, john at