[gdal-dev] Re: gdal-dev Digest, Vol 82, Issue 20

kui yang yang3kui at gmail.com
Fri Mar 11 09:46:52 EST 2011


My operating system is Win7.

Thanks a lot.

I  tried to add
#ifdef WIN32
 CPLSetConfigOption( "GDAL_FILENAME_IS_UTF8", "NO" );
#endif
in GDALAllRegister. And it works.

Now my GDAL1.8.0 work well with filename in Chinese.

Really appreciate all you have done. Wish all of you have a nice day.

2011/3/11 <gdal-dev-request at lists.osgeo.org>

> Send gdal-dev mailing list submissions to
>        gdal-dev at lists.osgeo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.osgeo.org/mailman/listinfo/gdal-dev
> or, via email, send a message with subject or body 'help' to
>        gdal-dev-request at lists.osgeo.org
>
> You can reach the person managing the list at
>        gdal-dev-owner at lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gdal-dev digest..."
>
>
> Today's Topics:
>
>   1. (no subject) (kui yang)
>   2. Re: Chinese Filenames (Frank Warmerdam)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 10 Mar 2011 23:42:18 +0800
> From: kui yang <yang3kui at gmail.com>
> Subject: [gdal-dev] (no subject)
> To: gdal-dev at lists.osgeo.org
> Message-ID:
>        <AANLkTimyob0HWyv_76Y2qX2DMxBv1sJtbAo=R3QAOpa4 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> gdal 1.8.0 has problem. when the filename is in Chinese
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110310/e567ba6b/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Thu, 10 Mar 2011 11:07:11 -0500
> From: Frank Warmerdam <warmerdam at pobox.com>
> Subject: Re: [gdal-dev] Chinese Filenames
> To: gdal-dev at lists.osgeo.org
> Message-ID: <4D78F72F.8090202 at pobox.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> 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
>
>
>
> ------------------------------
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> End of gdal-dev Digest, Vol 82, Issue 20
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110311/c557ee2c/attachment-0001.html


More information about the gdal-dev mailing list