ExifTool Forum

ExifTool => Developers => Topic started by: gwegner on June 12, 2012, 04:46:28 PM

Title: Problem with special characters "Umlauts" in path names
Post by: gwegner on June 12, 2012, 04:46:28 PM
Hi Phil,
I call the following parameters by piping it directly into exiftool:

-b\n
-jpgfromraw\n
C:\Users\gwegner\Desktop\test blöde dng\_MG_1676.dng\n
-execute\n


Without any special characters like the "ö" above everything works, I can read the jpg preview from the input stream.
But as soon as the special char is included it doesn't work anymore. Any idea?

Thank you very much
Gunther
Title: Re: Problem with special characters "Umlauts" in path names
Post by: Phil Harvey on June 12, 2012, 09:07:15 PM
In general, ExifTool does not work with special characters in file names.  This is a known problem with no easy solution.  There are a few threads discussing this problem.

- Phil
Title: Re: Problem with special characters "Umlauts" in path names
Post by: gwegner on June 13, 2012, 01:51:23 AM
Hi Phil, thank you for your swift reply. I did some more investigations. I thought I was intended to pipe the stream as UTF 8, but that didn't work. Now I tried ISO-8859-1 - that seems to work. At least on windows. I will have to test it on mac this evening.
Title: Re: Problem with special characters "Umlauts" in path names
Post by: Phil Harvey on June 13, 2012, 07:25:53 AM
On Mac there is no problem with special characters in file names.  The standard C libraries use UTF-8 for file names on Mac/Linux.  Heaven only knows why Microsoft doesn't do this.  You say it works with ISO-8859-1 on your Windows system, but this success will depend on your system settings, and may not work on other Windows systems.

- Phil