Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2022-08-16 07:44:54


Gavin Lambert wrote:
> Using wchar_t on Windows is actually the least painful option. (And you don't
> have to worry about locales and imbuements etc if you never try to convert to
> not-wchar_t.)

That's only if your program never runs on anything else. For portable code,
using char and UTF-8 is the least painful option. We have an entire library
in Boost for this purpose, whose documentation does a reasonable job
explaining that.

https://www.boost.org/doc/libs/1_80_0/libs/nowide/doc/html/index.html


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