Output charset

Started by mike1950r, January 11, 2022, 02:57:49 PM

Previous topic - Next topic

mike1950r

Hi,

i have a problem with the output of exiftool.

when we ask the usercomment and use wildcard
exiftool also outputs the filename of the file together with the usercomment.

but unfortunately it does not outputs it with the right charset.
we had setup -charset FileName=Latin2
but this does not effect the output filename.

what can i do?

thanks for assistance.

cheers mike

Phil Harvey

Hi Mike,

The -charset filename option specifies the character set of file names you input on the command line.  You should use the -charset option to specify encoding of output tag values (like the "FileName" tag).  If you want the file names converted, you need to specify both options.

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

mike1950r

Thanks Phil,

I thought something like this.

But I do not know the tagname for the output.

My command just asks the content of the UserComment:
exiftool -UserComment -charset FileName=Latin2 D:\*.jpg

Thanks for assistance

cheers mike

mike1950r

Hi again Phil,

just wanted to say that we found a solution.

Infact we are passing the output of exiftool to a file.
So if we read the file as utf8 we get the right information in german letters.

Thanks for your help.

Cheers mike