Bug 154983

Summary: UTF-8 being mangled in outgoing messages
Product: [Unmaintained] kopete Reporter: Dotan Cohen <kde-2011.08>
Component: ICQ and AIM PluginsAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dotan Cohen 2008-01-02 19:54:37 UTC
Version:           0.12.7 (using KDE KDE 3.5.8)
Installed from:    Ubuntu Packages

When writing in Hebrew in Kopete, my ICQ-using friend on Windows gets this:
×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-× -ס-×¢-×£-פ-×¥-צ-ק-ר-ש-ת
When I send this:
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת 

He is using the native ICQ client, but I do not know what version. I do have Kopete set to send ICQ as UTF-8, and my locale is he_IL.utf8. When sending the same message in Skype or Pidgin, it is received as intended. He is using ICQ in English on an English language Windows machine.

I thought that this bug may be related to Bug 121053, but that bug was closed a year ago and the problem persists in my current Kopete.
Comment 1 Roman Jarosz 2008-01-02 20:37:55 UTC
I can reproduce this, will try to fix it.

Btw. you should request authorization for that user and probably grant it if the user doesn't have your authorization already and when the user grants you the authorization then this problem should go away.

Comment 2 Matt Whitlock 2008-02-28 03:39:56 UTC
This is also a problem for the AIM protocol in Kopete.  I can receive messages with Unicode characters in them, but in messages I try to send, any characters outside of iso-8859-1 are replaced by question marks by the time the recipient receives them.  Oddly, those characters appear correctly in my copy of my message.  I know OSCAR supports UTF-8, so what's the trouble here, guys?  Come on!
Comment 3 Dotan Cohen 2008-03-17 21:25:24 UTC
Roman, authorizing did not solve the problem.
Comment 4 Matt Whitlock 2008-03-17 21:46:18 UTC
The latest version of Pidgin won't even accept AIM messages from Kopete because Kopete doesn't set the message encoding properly. Pidgin says: "There was an error receiving this message.  Either you and XXXXXX have different encodings selected, or XXXXXX has a buggy client."
Comment 5 Roman Jarosz 2008-03-17 22:00:36 UTC
Matt this is bug in pidgin 2.4.0, it will be fixed in 2.4.1. We can't do anything about it.

Dotan can you tell me which ICQ version the other user is using?
Comment 6 Dotan Cohen 2008-03-18 09:49:39 UTC
Yes, he is using ICQ 6.1 in a Russiah Windows environment. His ICQ install is in English. He has no problem communicating in English, Hebrew, or Russian with any of his other contacts. He has about 20-30 other contacts, and communicates in those three languages on a regular basis. He does not know what encoding or codepage is, and he is certain that he never touched an encoding or codepage-related setting. It 'just works' for him, with the exception of communicating with me when I use Kopete. When I use Pidgin we communicate fine.
Comment 7 Roman Jarosz 2008-03-23 21:33:57 UTC
SVN commit 789284 by rjarosz:

Make text encoding more robust by using optimal encoding.
Allow offline messages and all AIM messages (AIM doesn't sets the CAP_UTF8 anymore) to be UNICODE.
Fix max size of a message.

BUG: 159652
BUG: 154983



 M  +3 -4      aimcontactbase.cpp  
 M  +4 -8      icqcontactbase.cpp  
 M  +32 -0     liboscar/oscarmessage.cpp  
 M  +5 -0      liboscar/oscarmessage.h  
 M  +11 -3     liboscar/tasks/messagereceivertask.cpp  
 M  +1 -1      liboscar/tasks/profiletask.cpp  
 M  +14 -8     liboscar/tasks/sendmessagetask.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=789284
Comment 8 Roman Jarosz 2008-03-23 21:41:54 UTC
SVN commit 789289 by rjarosz:

Backport commit 789284.
Make text encoding more robust by using optimal encoding.
Allow offline messages and all AIM messages (AIM doesn't sets the CAP_UTF8 anymore) to be UNICODE.
Fix max size of a message.

CCBUG: 159652
CCBUG: 154983



 M  +3 -4      aimcontactbase.cpp  
 M  +4 -8      icqcontactbase.cpp  
 M  +32 -0     liboscar/oscarmessage.cpp  
 M  +5 -0      liboscar/oscarmessage.h  
 M  +11 -3     liboscar/tasks/messagereceivertask.cpp  
 M  +1 -1      liboscar/tasks/profiletask.cpp  
 M  +14 -8     liboscar/tasks/sendmessagetask.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=789289