ExifTool Forum

ExifTool => Developers => Topic started by: agriggio on January 10, 2023, 02:39:06 AM

Title: problem with unicode filenames on windows
Post by: agriggio on January 10, 2023, 02:39:06 AM
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!
Title: Re: problem with unicode filenames on windows
Post by: Phil Harvey on January 10, 2023, 06:45:33 AM
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
Title: Re: problem with unicode filenames on windows
Post by: agriggio on January 10, 2023, 08:50:59 AM
Great, thanks!
Title: Re: problem with unicode filenames on windows
Post by: ChrisGranger on January 18, 2023, 03:20:18 AM
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 ($).