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

2014-01-08 Thread Dmitriy Baryshnikov
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_FILEN

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

2014-01-08 Thread 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 > Hi, > > The GDAL utilities expected all input paths in UTF-8 encoding. If you want > to use system native encoding

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

2014-01-08 Thread Dmitriy Baryshnikov
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 a

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

2014-01-07 Thread 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: