|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2004-12-17 19:59:34
Peter Dimov wrote:
> Stefan Slapeta wrote:
>>
>> I would like to see this conversion functions available at a more
>> general place than the serialization library. But probably there is
>> much more to do to improve internationalization support than only
>> providing string/wstring conversion ;)
>
> Without specifying the encodings for the std::string and the
> std::wstring, it's not possible to convert between the two. Common
> wstring encodings are UCS-2, UTF-16, and UCS-4/UTF-32. The common
> std::string encodings are far
> too many to list here.
The conversion implemention used in the dataflow section of the library
relies upon standard library functions mblen and mbtowc. I believe that
these in turn rely upon the currently selected global locale for string
encodings.
Robert Ramey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk