[Digikam-devel] [digikam] [Bug 159220] Non printable characters in IPTC keyword set by Digikam and displayed by Gallery 2

Michal Sylwester msylwester at gmail.com
Mon Mar 3 06:17:02 GMT 2014


https://bugs.kde.org/show_bug.cgi?id=159220

Michal Sylwester <msylwester at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #85355|0                           |1
        is obsolete|                            |

--- Comment #19 from Michal Sylwester <msylwester at gmail.com> ---
Created attachment 85394
  --> https://bugs.kde.org/attachment.cgi?id=85394&action=edit
Use UTF-8 when reading/writing IPTC, set charset to UTF-8.

I did a little more digging, and it seems that to store UTF-8 in IPTC it is
necessary to set IPTC:CodedCharacterSet to "\33%G", otherwise it's still ASCII.
I've updated my path to always read and save as UTF8. Conversion ASCII->UTF8
when reading should be safe. Every time a field is changed the charset is set
to UTF8, so writing should be fine as well. I think it's an overkill but
checking all the characters every time is perhaps even worse.

Apparently, other charsets could also be supported, but I couldn't find any
details...

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list