Frank,<br><br>How do we know whether an unicode on an ansi string mapping should be actually done in the bindings? With respect to the C# bindings the strings are normally maintained as unicode in the C# side however the default conversion option is &quot;Charset.Ansi&quot; in the interface causing the character conversion is done automatically. When marshaling the stringlist values a custom code in typemaps_csharp.i use System.Runtime.InteropServices.Marshal.PtrToStringAnsi explicitly.<br>
<br>All of this mapping could also be set to unicode as well, however it&#39;s not clear to me how to decide whether ansi or unicode mapping should actually be done. Or do we intend to create 2 versions of each functions enumerated in  RFC 30?  Recall to switch between the unicode and ansi versions of the WinAPI functions (like CreatefileW or CreateFileA) are normally selected &#39;globally&#39; by using a compiler flag.<br>
<br>Best regards,<br><br>Tamas <br> <br><br><br><div class="gmail_quote">2010/9/15 Frank Warmerdam <span dir="ltr">&lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Folks,<br>
<br>
A client has asked me to support unicode filenames on windows.  To that end<br>
I have constructed an RFC for migration to treating all filesnames in the<br>
GDAL API as utf-8.<br>
<br>
  <a href="http://trac.osgeo.org/gdal/wiki/rfc30_utf8_filenames" target="_blank">http://trac.osgeo.org/gdal/wiki/rfc30_utf8_filenames</a><br>
<br>
I&#39;d appreciate review and comment.  If all is well I hope to call for a vote<br>
on this RFC late this week.<br>
<br>
Best regards,<br>
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush    | Geospatial Programmer for Rent<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>