[gdal-dev] Ogr2ogr does not support file name with non-ASCII character

Dmitriy Baryshnikov bishop.dev at gmail.com
Wed Jan 8 04:13:20 PST 2014


Hi,

The GDAL utilities expected all input paths in UTF-8 encoding. If you 
want to use system native encoding you have to set GDAL_FILENAME_IS_UTF8 
environment variable to NO.
http://trac.osgeo.org/gdal/wiki/ConfigOptions#GDAL_FILENAME_IS_UTF8

Best regards,
     Dmitry

08.01.2014 4:03, maven apache ?????:
> Hi:
>
> This is a cross post first post at 
> http://gis.stackexchange.com/questions/82142/ogr2ogr-does-not-support-file-name-with-non-ascii-character
>
> Since I got no answer, then I think I may post it here, this is the 
> original question:
>
> I tried to use the following script to convert shapefile to mif:
>
> |ogr2ogr -f "MapInfo File" D:\docs\arcgis_data\shp_mif\BOU.mif D:\docs\arcgis_data\shp\BOU.shp
> |
>
> it works.
>
> But I found that if the name of the shapefile has non-ASCII characters 
> like this:
>
> |D:\docs\arcgis_data\shp\??.shp
> |
>
> Then the covert will fail with message:
>
> |Unable to open datasource `D:\docs\arcgis_data\shp\??.shp' with the following drivers
> ......
> |
>
> Any idea to fix it?
>
> Looking for replay.
>
>
> Yang
>
> 2014.1.8
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140108/13dee77a/attachment-0001.html>


More information about the gdal-dev mailing list