Pb with accented characters in Exiftool output file

Started by Lagrandeimage, November 28, 2020, 05:55:37 PM

Previous topic - Next topic

Lagrandeimage

Hello all,

I have a command (thanks the forum) that allows me to output in a file all the keywords of files. It it the following command :

exiftool -keywords -L -sep "\n" -sep "\n" -r -b *.jpg > out.txt

It works great except for one detail.

For accented characters (I'm French) I get gibberish instead.

What argument can I use to correct this?

Thanks in advance.

Cheers

StarGeek

I'm assuming Windows, so this would be FAQ #18.  Basically, Windows command line doesn't deal well with non-ascii characters.

Alternatively, if you're using Windows 10, you could set the system locale to UTF8, as per this StackOverflow answer

The FAQ answer never worked for me but the StackOverflow one does, but you may see some weirdness in other places.  For example, in the Ditto clipboard manager, some characters are displayed as this character �, but paste from the clipboard correctly.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Lagrandeimage

Hi,

Thank you for your reply.

Using the -charset filename=utf8 (as per the FAQ) in the command solved the problem, all characters in my output file are now ok.

Thanks a lot!