[gdal-dev] Ogr2ogr does not support file name with non-ASCII character
maven apache
apachemaven0 at gmail.com
Wed Jan 8 16:00:08 PST 2014
Hi:
Thanks for your reply.
But I wonder how do I know if the file name is utf8? Since not all of the
filename contain no-asci characters.
Thanks
2014/1/8 Dmitriy Baryshnikov <bishop.dev at gmail.com>
> 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 listgdal-dev at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
> _______________________________________________
> 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/20140109/3a5c1039/attachment-0001.html>
More information about the gdal-dev
mailing list