UTF-8 missing in IPTC Encoding

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

herb
Posts: 265
Joined: Sat Jul 18, 2009 3:19 pm

UTF-8 missing in IPTC Encoding

Post by herb »

Hello,

First I have to say thank you for the new version 0.56 of XnViewMP.

With Tools --> Settings -- Metadata (see screenshot) a window is opened which allows to specify the encoding of IPTC metadata.
It is a wonderful feature and very helpful in case of reading IPTC metadata and the IPTC-tag: CodedCharacterSet is not present in the image file.
But the value UTF-8 for Unicode codepage is missing.

For writing IPTC metadata a specific option is availabe, which is not used reading IPTC metadata.

As I have lots of images with IPTC-metadata that also contain Unicode-characters, but CodedCharacterSet is not given, I ask you to add this value or to introduce another option for this.
For communication with Exiftool the option -charset iptc=utf8 must also be given.

Thanks in advance
Herb
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 43988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: UTF-8 missing in IPTC Encoding

Post by xnview »

When IPTC is in UTF8, i can recognize it
Pierre.
herb
Posts: 265
Joined: Sat Jul 18, 2009 3:19 pm

Re: UTF-8 missing in IPTC Encoding

Post by herb »

Hello,

my interpretation of your answer is, that you can recognize an UTF8 encoding of IPTC metadata also in version 0.56.

So please try the attached file, which contains IPTC in UTF8 but the tag CodedCharacterSet is not present.
Screenshot_1 shows the XnViewMP output and screenshot_2 shows it as expected.

Please correct the problem
Thanks
Herb
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 43988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: UTF-8 missing in IPTC Encoding

Post by xnview »

Ok, and which tool do you use to encode IPTC without CodedCharacterSet ?
Pierre.
herb
Posts: 265
Joined: Sat Jul 18, 2009 3:19 pm

Re: UTF-8 missing in IPTC Encoding

Post by herb »

Hello Pierre,

thanks for your quick reply.
I use ExifTool to display all metadata. To get a correct output I have to use the Exiftool option "-charset iptc=utf8".

Best regards
Herb
User avatar
m.Th.
XnThusiast
Posts: 1670
Joined: Wed Aug 16, 2006 6:31 am

Re: UTF-8 missing in IPTC Encoding

Post by m.Th. »

xnview wrote:Ok, and which tool do you use to encode IPTC without CodedCharacterSet ?
For ex. IDImager 5 and earlier.

It exhibits the very same problem. And perhaps AfterShotPro, but I'm not very sure.
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
herb
Posts: 265
Joined: Sat Jul 18, 2009 3:19 pm

Re: UTF-8 missing in IPTC Encoding

Post by herb »

Hello Pierre,

thanks for the new version 0.60 of XnViewMP and thanks for adding UTF8 to the list of possible IPTC encodings.

And sorry, but for me the problem is not fully corrected.
Yes, XnViewMP itself now uses the correct encoding to read IPTC data, but Exiftool does not.

For images - with IPTC metadata and without the tag CodedCharacterSet - Exiftool must be started with following option:
exiftool. exe -charset iptc=utf8 <imagefile>.

Please add this option when eExiftool is started.
Thanks in advance
Herb