ExifTool Forum

ExifTool => Newbies => Topic started by: wankio on February 22, 2023, 07:32:46 PM

Title: unicode filename and space
Post by: wankio on February 22, 2023, 07:32:46 PM
windows 10 - command prompt

exiftool -charset filename=utf8 -@ "童殺すセーター sweat_General_25451001_p14_TAGS=['sweater', 'fashion', 'girl', 'original', 'black hair'].png"
Error opening arg file ??????? sweat_General_25451001_p14_TAGS=['sweater', 'fashion', 'girl', 'original', 'black hair'].png

i can't figure out how to make this work with those type of filename


Thank!

Title: Re: unicode filename and space
Post by: StarGeek on February 22, 2023, 09:03:15 PM
The error shows one problem
Error opening arg file
The -@ (Argfile) option (https://exiftool.org/exiftool_pod.html#ARGFILE) requires a text file with command arguments as the next parameter.  Instead, you're passing it a PNG file.

The may be more problems as Windows doesn't do well with unicode characters on the command line.  You can try the options in FAQ #18 (https://exiftool.org/faq.html#Q18) if there are still problems once you get the arg file problem fixed.

On my computer, I couldn't get any of the FAQ options to work. Instead, I had to use this StackOverflow answer (https://stackoverflow.com/questions/57131654/using-utf-8-encoding-chcp-65001-in-command-prompt-windows-powershell-window/57134096#57134096).  Unfortunately, it has the side effect of messing up the GUIs on some older programs.
Title: Re: unicode filename and space
Post by: wankio on February 23, 2023, 01:01:53 PM
oh i see, so today i just tried with git-bash and it work
 

Title: Re: unicode filename and space
Post by: StarGeek on February 23, 2023, 01:10:39 PM
Quote from: wankio on February 23, 2023, 01:01:53 PMoh i see, so today i just tried with git-bash and it work

Ah, good to know.  I've been meaning to do some testing with git-bash, but haven't gotten around to it.