problem with unicode filenames on windows

Started by agriggio, January 10, 2023, 02:39:06 AM

Previous topic - Next topic

agriggio

Hi again,
I am having troubles making -@ work with unicode file names on windows. I'm using -charset filename=utf8 as specified in the docs, but for me this works only for the first file name in the command list. Any subsequent unicode file name results in an error. For example, using this cmd.txt:
-Make
nüÀ and spaces.nef
-execute
-Model
nüÀ and spaces.nef
-execute

and running exiftool.exe -charset filename=utf8 -@ cmd.txt I get this:

C:\>exiftool.exe -charset filename=utf8 -@ cmd.txt
Make                            : NIKON CORPORATION
Error: File not found - nüÀ and spaces.nef

Any idea on what I am doing wrong?

Thanks in advance!

Phil Harvey

Each command between -execute options is separate.  You need the -charset filename=utf8 for each command.  Try this:

exiftool -@ cmd.txt -common_args -charset filename=utf8

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).


ChrisGranger

Type the Unicode character code, press ALT, and then press X to insert it. For instance, write 0024, press ALT, and then press X to type the dollar sign ($).