Lightroom (1.4.1 and 2.0b) doesn't properly save IPTC in UTF8?

  • Thread starter Thread starter underbjerg
  • Start date Start date
Status
Not open for further replies.
U

underbjerg

Guest
I have also posted this here: http://www.adobeforums.com/webx/.59b59595, and I have read this topic, which didn't offer a solution: http://www.lightroomqueen.com/community/showthread.php?t=563.

I'm having problems viewing metadata written in Lightroom 1.4.1 or 2.' beta in other applications.

I write titles, captions and keywords in Lightroom on Mac OSX, using danish characters such as Æ Ø and Å. I then export the files to a JPG, and try to use it in for example Flickr and Menalto Gallery 2.2.4 (both of which can read IPTC tags), but in both cases the danish characters do not display correctly, and I have to manually edit all titles, captions and keywords containing them, after I have uploaded.

This prompted me into doing a bit of research on what was actually written to the file, and it seems that both Lightroom 1.4.1 and 2.' beta do not correctly write IPTC tags in UTF8.

I've been using Exiftool to view the metadata on one of the files exported from Lightroom (both versions), and this is what I see: The XMP tags display correctly, but the IPTC tags do not.
exiftool -f -G LR1.4.jpg ...
[IPTC] Object Name : ¾¿ Œ ^' * Erik
[IPTC] Caption-Abstract : Her ¾r nŒget m¾rkeligt text. J¿Œ¾*@
...
[XMP] Title : æø å ^' * ç Erik!
[XMP] Description : Her ær någet mærkeligt text. Jøåæ*@
...
​
Reading the Exiftool forums, it seems that according to the IPTC specification, IPTC supports UTF8 encoded metadata, but it *requires* that the field IPTC:CodedCharacterSet is set to "UTF8" or "ESC % G". My theory is that Lightroom *does* write IPTC tags in UTF8, but doesn't write the CodedCharacterSet field (I can't see it), and Exiftool then interprets the IPTC data as latin1 (or something similar), and gets the characters wrong. It seems that this is what Flickr and Gallery 2.2.4 are doing as well.

References:

http://www.cpanforum.com/threads/2114

http://www.cpanforum.com/threads/5133

Am I correct? And can Lightroom be changed to properly export IPTC metadata in UTF8?

----
Erik Underbjerg
Mac OS X
Lightroom 1.4.1
 
Last edited by a moderator:
More research...

Yes, I will do that.

I did a bit more research: I tried setting the CodedCharacterSet to utf8 myself:

exiftool -IPTC:CodedCharacterSet="UTF8" LR1.4.jpg

...thus forcing Exiftool to interpret the iptc tags as UTF8, but that didn't give me readable IPTC tags:

[IPTC] Object Name : ? ? ^' * ? Erik
[IPTC] Caption-Abstract : Her ?r n?get m?rkeligt text. J???*@

Which led me to believe that Lightroom for Mac OS X isn't writing IPTC tags in UTF8 after all.

Finally I tried saving the content of the IPTC tags to a file, and opened that with TextMate, forcing it to interpret it as MacRoman. That worked. There were still a few weird characters here and there, but the danish characters were displayed.

So apparently Lightroom 1.4.1 and 2.'b on Mac OSX are saving their IPTC tags in MacRoman encoding. I would *really* like an option to have IPTC tags written in UTF8, because the IPTC tags currently generated from my Lightroom on Mac cannot be read properly on Windows or Linux systems, or be used with applications such as Flickr and Menalto Gallery.

----
Erik Underbjerg
Mac OS X
Lightroom 1.4.1
 
Indeed - very nice work Erik! And welcome!
 
Thanks

Thanks for the welcome :-)

I submitted it to adobe, in two batches, and then submitted another one requesting that the 2''' character limit on their feedback form be raised ;-)

----
Erik Underbjerg
Mac OS X
Lightroom 1.4.1
 
Status
Not open for further replies.
Back
Top