Hi,
You shouldn't know that file name is UTF. It maybe not in UTF (e.g. in
you system encoding - in Linux usually UTF-8, in Windows - CP1252,
CP1251 etc.).
But you command line shell (bash, cmd, etc.) should encode the input to
the UTF8, or you have to set the environment variable
GDAL_FILENAME_IS_UTF8 to NO.
Best regards,
Dmitry
09.01.2014 4:00, maven apache ?????:
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 <[email protected]
<mailto:[email protected]>>
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
[email protected] <mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
[email protected] <mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev