Hi, and thanks for a great tool!
Using Windows 7, cygwin and exiftool 10.17 i ran in to the following problem.
I use exiftool in -stay_open mode and noticed that I only got exif-information for the first file exiftool when the path include non ascii characters.
After some debugging I figure the problem is related to sending multiple commands so I changed it to static files as input to debug more.
Example file example.txt:
-j
C:\<C3><98>ystein\<C3><98>ystein.JPG
-execute
-j
C:\<C3><98>ystein\IMG_0010.JPG
-execute
Command:
exiftool.exe -charset filename=utf8 -@ example.txt
Result:
I get full exif info for Øystein.JPG, but in the middle of the json output (Stderr?) "File not found: C:/Øystein/IMG_OO10.JPG"
Note:
Doing the same with paths not containing non ascii characters works and gives two json objects as output.
Example file example2.txt
-j
C:\<C3><98>ystein\<C3><98>ystein.JPG
C:\<C3><98>ystein\IMG_0010.JPG
-execute
Command:
exiftool.exe -charset filename=utf8 -@ example2.txt
Result.
Exif information for both files as expected.
Any clues on why this happens and how to fix it? As character sets/executing external programs with paths can be very hard in Windows, sending them as utf-8 is a very good idea, if I can get it to work :)
Your -charset option (and all other options except for -use) applies only to the first command. If you read files with multiple commands you need to use the -charset option for each one, or use the -common_args feature.
- Phil
Sorry for not reading the docs properly, using -common_args worked superbly.
Thank you and have a great weekend!