feature request: convenience function to set IPTC encoding to UTF-8

Bug #461847 reported by fredp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyexiv2
Fix Released
Wishlist
Olivier Tilloy

Bug Description

Using utf-8 in IPTC keys implies this encoding is declared by setting Iptc.Envelope.CharacterSet to contain the three bytes '\x1b%G'.

This information is not well documented and not well known.

It is also not that easy to achieve with pyexiv2 0.1, because Iptc.Envelope.CharacterSet is of type 'Undefined', and setting the key only works after you've found the StringToUndefined() function in the code.

ExifTool has a convenience function to set this parameter simply and explicitly. Something similar would be useful in pyexiv2 too.

Related branches

Revision history for this message
Olivier Tilloy (osomon) wrote :

Relevant documentation: see the code for IptcData::detectCharset() in exiv2.

Changed in pyexiv2:
importance: Undecided → Wishlist
status: New → Confirmed
Olivier Tilloy (osomon)
Changed in pyexiv2:
assignee: nobody → Olivier Tilloy (osomon)
status: Confirmed → In Progress
Revision history for this message
Olivier Tilloy (osomon) wrote :

Implemented with revision 345 of the trunk.

Changed in pyexiv2:
milestone: none → 0.3
status: In Progress → Fix Committed
summary: - feature request : convenience function to set IPTC encoding to UTF-8
+ feature request: convenience function to set IPTC encoding to UTF-8
Olivier Tilloy (osomon)
Changed in pyexiv2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.