[Digikam-devel] [Bug 272180] Camera Device Summary seems to use wrong encoding

Thomas Eschenbacher Thomas.Eschenbacher at gmx.de
Sun May 29 06:20:17 BST 2011


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





--- Comment #2 from Thomas Eschenbacher <Thomas Eschenbacher gmx de>  2011-05-29 07:20:09 ---
Ok, I wouldn't go so far to say that there is something wrong in that library.
The question rather is "which string encoding does their API offer?"

I did a quick look at the libgphoto2 sources, but I did not see any note about
a concrete "encoding". It seems that they use just "char*" and the strings
contain "translated text" (at least the comments in the code says so). 

That means for digikam, that whenever receives such a string from the library,
it probably needs to be converted it by using QString::fromLocal8Bit(),
fromUtf8() or similar. 

My system here is configured to use UTF-8 as native encoding, so I guess that
fromLocal8Bit(...) might be a good choice. Could you please give this a try?

Thomas

-- 
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