Boost logo

Boost :

Subject: Re: [boost] [General] Always treat std::strings as UTF-8?
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-01-14 10:04:19

Alexander Lamaison wrote:
> Presumably, Mac OS X returns paths in the same encoding as it expects to
> receive them? So just passing them around and eventually back to the OS
> will always work regardless of encoding?

Yes, it does (because it's UTF-8). It doesn't work on Windows in general -
if the file name contains characters that can't be represented in the
default code page, they are replaced by something else, typically '?',
sometimes the character without the acute mark. Either way, the name can no
longer be used to refer to the original file.

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