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:

  
http://cppcms.sourceforge.net/boost_locale/html/group__codepage.html#ga878bd2dcc00621d4e4e7d3d98f39736d

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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk