Summary: | accentuated chars are converted into a mess during picasa web export [patch] | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | gpetetin |
Component: | Plugin-WebService-Google | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, clement.cc, tschenser |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 1.1.0 | |
Sentry Crash Report: | |||
Attachments: |
Patch agianst kipi-plugins-0.8.0
New patch with fix for multiple tags from bug 199145 |
Description
gpetetin
2009-09-01 17:36:57 UTC
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. Created attachment 38518 [details]
Patch agianst kipi-plugins-0.8.0
Created attachment 38568 [details] New patch with fix for multiple tags from bug 199145 The patch is included in https://bugs.kde.org/attachment.cgi?id=38567 and already applied with https://bugs.kde.org/show_bug.cgi?id=199145#c18 . So I'm closing this bug entry. |