[osgeo4w-dev] Encoding of file names
Björn Höfling
bjoern.hoefling at bjoernhoefling.de
Wed Jan 23 11:47:17 PST 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/17/2013 04:07 PM, Björn Höfling wrote:
> Hi list,
>
> I have a .tif + .tfw which I want to gdaltindex. The problem is
> that the filename contains a German umlaut and GDAL complains
> about:
>
> It appears no georeferencing is available for
>
> M?nchen.tif
>
> ? Is a strange symbol where a u with dots should appear.
>
> You get the same strange writing with ls command. Windows DIR
> displays the file correctly.
For the record: I could not solve the problem within the OSGeo4W
console, but at least found the following circumvention:
1. Open a normal DOS shell (cmd.exe)
2. set path:
SET PATH=C:\OSGeo4W\bin
(this will prevent from complaining about gdal17.dll)
3. call gdaltindex directly:
C:\OSGeo4W\apps\gdal-17\bin\gdaltindex.exe index.shp *.tif
In this way, gdal will correctly find all files with German Umlaute.
Björn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iEYEARECAAYFAlEAPkQACgkQvyhstlk+X/2oywCgodsOHrAnLxVDERk2RagfCI8m
m1IAnjesWkjJb716+3f8Tou/qlnXCPKg
=zAlT
-----END PGP SIGNATURE-----
More information about the osgeo4w-dev
mailing list