|
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 acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk