[Originally posted by schmidtze on 2007-12-10 10:30:23-08]
Hi,
I want to write XMP and IPTC data to an image at the same time. For the XMP data I want to save it in UTF8, the IPTC data should be saved as Latin1. Is it possible to do it in one step? For the IPTC data I would need the "-L" option, but this option prevents saving the XMP data correctly, doesn't it. I tried out a lot yesterday and now I'm a bit confused.
Best regards + many thanks
Schmidtze
[Originally posted by exiftool on 2007-12-10 12:28:09-08]
Hi Schmidtze,
The -L option only applies to the external character set, not to
how it is saved in the file. XMP is always saved as UTF8, and
the IPTC encoding is determined by the value of the
CodedCharacterSet tag.
The thing to do is to pass all strings to exiftool as UTF8, and let it
handle the encoding. You use the -L option if you want to pass
Latin1 strings to exiftool, but the result stored in the file will be
the same since exiftool handles the encoding when writing to
the file.
I hope this makes sense.
- Phil