<html><head><base href="x-msg://730/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">My situation was - Gtk2 interface (GtkFileChooser in my case) returns an UTF-8 encoded string. UTF-8 being GLib internal/native encoding. Neither CreateFileA not CreateFileW can handle it so I "hardcoded" some logic into FS.OpenFile(Readonly)? and handled a case with non-ASCII input. Ideal would be to have encoding information as an integral part of every TEXT, but… In my knowledge, POSIX systems handle UTF-8 filenames well (?check:) so explicit information on encoding for FS is needed only for Windows.<div><br><div><div><div>On Jun 25, 2012, at 8:44 PM, Jay K wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; "><div dir="ltr">Functions like CreateFileA use the "ANSI" or "OEM" code page, subject to a public global in Win32, and the two code pages vary per-install (or per-user). It is just not a good system.<br> <br> <br>Functions like CreateFileW work very well with 16bit encoded characters.<br><br> <br>Can/do we arrange to have 16bit encoded characters?<br> <br> <br> - Jay<br><br><div><div id="SkyDrivePlaceholder"></div>> From:<span class="Apple-converted-space"> </span><a href="mailto:dragisha@m3w.org">dragisha@m3w.org</a><br>> Date: Mon, 25 Jun 2012 12:51:05 +0200<br>> To:<span class="Apple-converted-space"> </span><a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br>> Subject: [M3devel] Windows, Unicode file names<br>><span class="Apple-converted-space"> </span><br>> Anybody aware of issues with FSWin32.m3 and cases where one actually has to cover situation with non-ASCII filenames under Windows? Met problem?<br>><span class="Apple-converted-space"> </span><br>> TIA,<br>> dd<br>></div></div></div></span></blockquote></div><br></div></div></body></html>