
14 Apr
2011
14 Apr
'11
7:29 p.m.
Does this library support this conversion? No. Why it doesn't support char set conversion between UTFs?
Agree. I see no way to convert strings between UTF-X and UTF-Y without specifying the locale.
Actually there is: http://cppcms.sourceforge.net/boost_locale/html/group__codepage.html#ga878bd... For example std::wstring w=boost::locale::conf::to_utf<wchar_t>("some text","UTF-8"); std::string n=boost::locale::conf::to_utf<char>(L"some text","UTF-8"); Artyom