Localization: example from document page doesn't work for latin characters ?
Jan Pfeifer
pfjan@yahoo.com.br
Sun Dec 11 16:09:00 GMT 2005
It worked!! :D, at least in C++, but not in C. The output became:
$ g++ -o test test.cc && ./test
C++ version:
Ãrfão
ÃRFÃO
órfão
C version:
Ãrfão
ÃRFãO
Ãrfão
thanks a lot!
jan
Paolo Carlini wrote:
>Paolo Carlini wrote:
>
>
>
>> Really,
>>it's just matter of imbuing and then everything should work immediately.
>>
>>
>>
>>
>I.e., adding, at the beginning of main two lines like:
>
> ios::sync_with_stdio(false);
> wcout.imbue(locale("en_US.UTF-8"));
>
>should work to enable conversion to external en_US.UTF-8.
>
>Paolo.
>
>
_______________________________________________________
Yahoo! doce lar. Faça do Yahoo! sua homepage.
http://br.yahoo.com/homepageset.html
More information about the Libstdc++
mailing list