
On Wed, Jun 16, 2010 at 05:23:19PM -0400, Beman Dawes wrote:
On Tue, Jun 15, 2010 at 2:36 PM, Artyom <artyomtnk@yahoo.com> wrote:
- Standard library does not accept "wchar_t const *" as parameter to open (with exception of MSVC specific extension) - Windows API does not support UTF-8 codepage.
So how do you deal with it?
Use the Microsoft UTF-codepage, 65001
Judging by assorted postings by Michael Kaplan (Unicode Grandmaster at Microsoft), there seems to be much fun to be derived from trying to use the UTF-8 codepage with narrow APIs. [1] http://blogs.msdn.com/b/michkap/archive/2006/07/14/665714.aspx [2] http://blogs.msdn.com/b/michkap/archive/2006/10/11/816996.aspx [3] http://blogs.msdn.com/b/michkap/archive/2006/03/13/550191.aspx [4] http://blogs.msdn.com/b/michkap/archive/2007/05/11/2547703.aspx -- Lars Viklund | zao@acc.umu.se