ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: lhb727 on February 25, 2017, 09:51:59 AM

Title: Warning: Some character(s) could not be encoded in Latin
Post by: lhb727 on February 25, 2017, 09:51:59 AM
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!



Title: Re: Warning: Some character(s) could not be encoded in Latin
Post by: Phil Harvey on February 25, 2017, 11:22:34 AM
Keywords is IPTC.  See FAQ 10 (https://exiftool.org/faq.html#Q10) for details about how to handle special characters in IPTC.

- Phil
Title: Re: Warning: Some character(s) could not be encoded in Latin
Post by: lhb727 on March 07, 2017, 11:24:01 AM
Great it works! The magic is:  -charset iptc=UTF8

Thank you very much!
Title: Re: Warning: Some character(s) could not be encoded in Latin
Post by: Phil Harvey on March 07, 2017, 11:49:33 AM
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