
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