[Digikam-devel] [Bug 205824] EXIF UserComments with special characters get tagged as ASCII

Andreas Huggel ahuggel at gmx.net
Wed Jan 20 10:03:13 GMT 2010


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





--- Comment #11 from Andreas Huggel <ahuggel gmx net>  2010-01-20 11:03:08 ---
Gilles,

Probably yes. Assuming libkexiv2 has an interface like

void setUserComment(const std::string& comment);

to set an Exif user-comment, then the comment passed in should always be UTF-8
encoded now. The function can then simply set an Exif UNICODE user-comment, or,
as suggested above somewhere, analyse the comment and use an Exif ASCII
user-comment if the text is (7-Bit) ASCII only and an UNICODE user-comment if
not.

Andreas

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list