|
Boost Users : |
Subject: Re: [Boost-users] Open a filename with a wstring or wchar_t *
From: Timothy Madden (terminatorul_at_[hidden])
Date: 2010-08-02 10:02:11
Mathias Gaunard wrote:
> On 02/08/10 12:46, Timothy Madden wrote:
>> Hello
>>
>> Surprisingly enough, C++ file-based streams can be opened with a char *
>> string (for the filename) only, while modern computer systems have
>> Unicode filenames.
>
> All of them but Microsoft Windows support UTF-8.
How would I let the file-stream object know that the filename to be
opened is encoded in UTF-8 ?
>
>
>> Is there a (good) way to open a file with a wstring in boost ?
>
> Boost.Fileystem has wide characters support, but I would advise avoiding
> wide characters entirely.
How ?
If user enters an Unicode filename (with Korean characters) for me to
open, and the current locale is Latin 2, how would I open the file ?
Thank you,
Timothy Madden
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