Page 1 of 1

Choice of encoded character set for IPTC data

Posted: Fri Dec 21, 2007 4:04 pm
by John Brown
Suggestion: Add the option to select the character encoding set for the IPTC data both for reading and writing.

Benefit: Make the application more flexible for use in countries using non-ASCII characters and the images portable between OS (Windows/Linux). Also improves usability with images acquired from other sources.

Details:
1) For reading and default writing, the selection could be in Tools / Options / Interface, for writing also part of the Edit / Metadata / Edit IPTC dialogue.

2) For reading, the character set used for display should default to the one specified by the standard IPTC tag Coded Character Set in the image; if this is not present to the setting in XnView options.

3) For writing, the proposed selection box default value in the Edit / Metadata / Edit IPTC dialogue should follow the same principles. Additionaly, if the IPTC tag Coded Character Set is not in the image, it should be created.

4) The available character sets should include as a minimum Unicode, UTF-8, the Windows code pages and the ISO 8859-x character sets.

Re: Choice of encoded character set for IPTC data

Posted: Sun Mar 16, 2008 9:06 pm
by premek.b
John Brown wrote:Suggestion: Add the option to select the character encoding set for the IPTC data both for reading and writing.
I second this suggestion - just see what the default behaviour does when an image with IPTC is put to an online album. I'd further suggest that the default encoding is set to UTF-8.

Premek

IPTC data in UTF-8

Posted: Tue Sep 16, 2008 1:48 pm
by JoseDZ
I do also fully support this suggestion.

José

Re: Choice of encoded character set for IPTC data

Posted: Tue Dec 23, 2008 4:07 pm
by xnview
It seems that IPTC can store character set for string, so someone has a file with IPTC in utf8??

Re: Choice of encoded character set for IPTC data

Posted: Tue Dec 23, 2008 8:30 pm
by XnTriq
xnview wrote:It seems that IPTC can store character set for string, so someone has a file with IPTC in utf8??
http://farm1.static.flickr.com/27/60169 ... 88_o_d.jpg
Jan Egil Kristiansen ([url=http://www.flickr.com/help/forum/14069/]IPTC, Exifer and UTF-8[/url]) wrote:When uploading Stakkur, I was pleased to see that my IPTC keywords inside the JPEG file was used as tags.

But the keyword "Eiði" got wrong, the "ð" was replaced by two characters, probably ISO-8859-1 representations of the two bytes that represent "ð" in UTF-8.

I wrote the IPTC keywords with Exifer 2.1.5, and have no idea if the problem is in Exifer or in Flickr.

Re: Choice of encoded character set for IPTC data

Posted: Wed Dec 24, 2008 6:51 am
by xnview
XnTriq wrote:
xnview wrote:It seems that IPTC can store character set for string, so someone has a file with IPTC in utf8??
http://farm1.static.flickr.com/27/60169 ... 88_o_d.jpg
Jan Egil Kristiansen ([url=http://www.flickr.com/help/forum/14069/]IPTC, Exifer and UTF-8[/url]) wrote:When uploading Stakkur, I was pleased to see that my IPTC keywords inside the JPEG file was used as tags.

But the keyword "Eiði" got wrong, the "ð" was replaced by two characters, probably ISO-8859-1 representations of the two bytes that represent "ð" in UTF-8.

I wrote the IPTC keywords with Exifer 2.1.5, and have no idea if the problem is in Exifer or in Flickr.
Not encoded in utf8 :-)

Re: Choice of encoded character set for IPTC data

Posted: Wed Dec 24, 2008 7:20 am
by XnTriq
xnview wrote:Not encoded in utf8 :-)
Whoops! Sorry, Pierre. I blame the eggnog... :P

Image with IPTC data encoded in UTF-8

Posted: Wed Dec 24, 2008 4:08 pm
by JoseDZ
You can find an image with IPTC data encoded in UTF-8 at this adress:

http://www.lecac.be/images/1971agnes.jpg


The IPTC field "author" contains the following string: Drèze José
When using XNVIEW, the contents of this field is displayed: Drèze José

José