Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::filesystem::path in UTF-8 on Windows
From: Igor R (boost.lists_at_[hidden])
Date: 2011-11-05 13:57:24


>>>> On Windows you should convert it to utf16.
>
> I know that is how it stores it internally.
> My question is "how".  Given that I have data that are file names and
> encoded in UTF-8, how do I make the Boost path class accept them, and
> operate conveniently enough to be worth using instead of plain strings?

I don't think "path" object can do such a conversion automatically, so
you should convert it on your own using CRT, WinAPI, ATL macros or any
other facilities.


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