[metadata] Charset conversion of IPTC tags #49

Closed
opened 2026-10-04 23:41:28 +02:00 by adam · 1 comment
Owner

Reported by Misiaque on 22 Jun 2007 07:54

Version: 1.7.0

We need means of setting the default charset for IPTC metadata, and have PhpWebGallery convert from this charset to the charset of the template/database.

For example, I come from Poland, our characters don't exists in iso8859-1 charset, so I have to use a template with iso8859-2 encoding (didn't try UTF yet). Windows has it's own way and I use Windows programs to set IPTC metadata.... it uses Win1250 charset. So I had to write my own function to convert from Win1250 to iso-latin2 on metadata synchronization. It would be nice if the developers addressed this issue in an universal way, e.g. I set the encoding of the IPTC tags in config file, and PWG uses a universal charset conversion class to convert the tags for the user, so that they are displayed correctly on PWG webpages.

Piwigo Bugtracker #710

**Reported by Misiaque on 22 Jun 2007 07:54** **Version:** 1.7.0 We need means of setting the default charset for IPTC metadata, and have PhpWebGallery convert from this charset to the charset of the template/database. For example, I come from Poland, our characters don&#039;t exists in iso8859-1 charset, so I have to use a template with iso8859-2 encoding (didn&#039;t try UTF yet). Windows has it&#039;s own way and I use Windows programs to set IPTC metadata.... it uses Win1250 charset. So I had to write my own function to convert from Win1250 to iso-latin2 on metadata synchronization. It would be nice if the developers addressed this issue in an universal way, e.g. I set the encoding of the IPTC tags in config file, and PWG uses a universal charset conversion class to convert the tags for the user, so that they are displayed correctly on PWG webpages. [Piwigo Bugtracker #710](http://piwigo.org/bugs/view.php?id=710) <!-- github-sync-id:97225372 -->
adam closed this issue 2026-10-04 23:41:28 +02:00
Author
Owner

Comment posted by plg on 26 Jul 2010 21:05

It sounds very related to http://piwigo.org/forum/viewtopic.php?id=16251 : I propose to have a $conf['iptc_encoding'] setting but it means that all your photos are using the same IPTC encoding.

**Comment posted by plg on 26 Jul 2010 21:05** It sounds very related to http://piwigo.org/forum/viewtopic.php?id=16251 : I propose to have a $conf[&#039;iptc_encoding&#039;] setting but it means that all your photos are using the same IPTC encoding. <!-- github-comment-id:124890072 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#49