Boost logo

Boost :

Subject: Re: [boost] [General] Always treat std::strings as UTF-8
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-01-15 07:28:09

On 15/01/2011 10:39, Artyom wrote:

> It would be simple to combine a library that
> uses old policies with new ones.
> namespace boost {
> std::string utf8_to_ansi(std::string const&s);
> std::string ansi_to_utf8(std::string const&s);
> std::wstring utf8_to_wide(std::string const&s);
> std::string wide_to_utf8(std::wstring const&s);
> }

ANSI doesn't really mean much.
It's purely a windows thing.

utf8_to_locale, which would take a std::locale object, would make more

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