[Digikam-devel] [Bug 205903] accentuated chars are converted into a mess during picasa web export

Siu Chung Cheung (Clement) clement.cc at gmail.com
Mon Nov 23 01:00:47 GMT 2009


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


Siu Chung (Clement) Cheung <clement.cc at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clement.cc at gmail.com




--- Comment #1 from Siu Chung (Clement) Cheung <clement cc gmail com>  2009-11-23 02:00:46 ---
Same problem with Chinese characters. This is because there's a bug in the
Picasa plugin's version of mpform.cpp:

72     bool MPForm::addPair(const QString& name, const QString& value, const
QString& contentType) 

95      str += "Content-Length: " ;
96     str += content_length.toAscii();
97     str += "\r\n\r\n";
98     str += value.toUtf8();
99     str += "\r\n";
100     
101     m_buffer.append(str.toUtf8()); 

str is already in utf8 when we convert value to utf8. But we convert it again
before adding it to m_buffer. Obviously that will screw up all the special
characters. I have no idea why each plugin wants to have his copy of the exact
same thing. But the bug was apparently fixed on the Flickr plugin's copy of the
exact same file:

<http://websvn.kde.org/trunk/extragear/graphics/kipi-plugins/flickrexport/mpform.cpp?r1=879160&r2=879161&>

Copying the latest code over from the flickr copy fixes the issue.

The patch attached fixes both #199145 and #205903.

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