Boost logo

Boost :

Subject: Re: [boost] Fw: [locale] Formal review of Boost.Locale library
From: Artyom (artyomtnk_at_[hidden])
Date: 2011-04-14 15:29:44


> > 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:

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");


Boost list run by bdawes at, gregod at, cpdaniel at, john at