Warning: Some character(s) could not be encoded in Latin

Started by lhb727, February 25, 2017, 09:51:59 AM

Previous topic - Next topic

lhb727

This warning occur when I use special utf8 characters in the keywords tag. And special characters are translated with ? in the output image.
The problem is only with this tag, all other tags are corectly filled with special characters.

important part of the command: exiftool -charset UTF8 -lang cs -Subject="česky,nečesky" -sep "," Keywords+="česky,nečesky" -XPKeywords="česky,nečesky"

Exif tags in the output image is:
Subject: česky,nečesky
Keywords: ?esky
Keywords: ne?esky
...


Version of exiftool: 10.36
OS: Fedora 24
LANG=cs_CZ.utf8

Thanks for your help!




Phil Harvey

Keywords is IPTC.  See FAQ 10 for details about how to handle special characters in IPTC.

- 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 ($).

lhb727

Great it works! The magic is:  -charset iptc=UTF8

Thank you very much!

Phil Harvey

If you are using UTF8 encoding for IPTC, you should set -iptc:codedcharacterset=utf8 in the metadata.  Then you won't need to specify the -charset option when reading.

- 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 ($).