
2 Aug
2010
2 Aug
'10
2:02 p.m.
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