asolfre / qwit

Automatically exported from code.google.com/p/qwit
GNU General Public License v3.0
0 stars 0 forks source link

Text encoding of TwitPic comment must be UTF8 #172

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Upload any picture with comment, "테스트" (test in Korean.)
2. Check the uploaded picture in TwitPic web sites.
3. There's only "???" in comment.

What is the expected output? What do you see instead?

In comment, there must be "테스트" not useless "???".

What version of the product are you using? On what operating system?

Latest svn snapshot(r357), on Debian Sid.

Please provide any additional information below.

in my case, following patch works well. :-)

--- qwit-1.1~pre2+svn357.orig/src/TwitPicDialog.cpp     2011-02-15 
06:33:43.581582003 +0900
+++ qwit-1.1~pre2+svn357/src/TwitPicDialog.cpp  2011-02-15 06:34:16.027582003 
+0900
@@ -143,7 +143,7 @@
     ba.append(TWITPIC_API_KEY + "\r\n");
     ba.append("--" + boundary + "\r\n");
     ba.append("Content-Disposition: form-data; name=\"message\"\r\n\r\n");
-     ba.append(m_picCommentEdit->text() + "\r\n");
+     ba.append(m_picCommentEdit->text().toUtf8() + "\r\n");
     ba.append("--" + boundary + "\r\n");
     ba.append("Content-Disposition: form-data; name=\"media\"; "
               "filename=\"" + QFileInfo(m_fileName).baseName() + "\"\r\n");

Original issue reported on code.google.com by itsky...@gmail.com on 14 Feb 2011 at 9:46