Boost logo

Boost Users :

Subject: Re: [Boost-users] narrow/wide string conversion
From: Boris Schaeling (boris_at_[hidden])
Date: 2010-08-12 18:49:47


On Fri, 13 Aug 2010 00:17:21 +0200, John Dlugosz
<JDlugosz_at_[hidden]> wrote:

> What's the proper, standard, orthodox, etc. way of converting between a
> std::string and a std::wstring?

Have a look at mbstowcs() and wcstombs() in <cstdlib> (although they want
char* and wchar_t* of course).

Boris


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net