[gdal-dev] Chinese Filenames

Frank Warmerdam warmerdam at pobox.com
Thu Mar 10 11:07:11 EST 2011


On 11-03-10 10:42 AM, kui yang wrote:
> gdal 1.8.0 has problem. when the filename is in Chinese


Kui Yang,

That is not a very detailed bug report.  GDAL 1.8 includes some changes
in the underlying handling of filenames such that filenames passed in to
GDALOpen() should be passed in UTF-8 rather than the local encoding.  This
was generally the situation already on Linux and I suppose most other unix
type operating systems.  But it was a change on windows.

Are you working on windows?

How are you encoding the filenames being passed to GDALOpen()?

As a workaround, you can restore essentially the old filename handling
behavior on windows by setting the GDAL_FILENAME_IS_UTF8 configuration
variable to "NO".  Some info on setting config options is available at:

   http://trac.osgeo.org/gdal/wiki/ConfigOptions

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list