Bug 159652

Summary: messages, russian, icq, incoming, encoding
Product: [Unmaintained] kopete Reporter: Egor <akrus>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Egor 2008-03-21 14:22:24 UTC
Version:            (using KDE 4.0.2)
Installed from:    Ubuntu Packages
Compiler:          gcc 4.2.3 
OS:                Linux

Hello!

Kopete 0.50.0 still has the same problem Kopete 0.12.x has. When someone who is not in my contact list sends a message - it's received well although when I'm replying to this contact - he/she gets a message with only question marks instead of cyrillic letters (numbers, symbols & latin symbols are sent right). This problem requires me to use pure english language or to add a contact to my contact list and talk to him/her.
Comment 1 Egor 2008-03-21 14:23:34 UTC
Forgot to mention, this happens only with several ICQ clients. Kopete <-> Kopete messaging is ok.
Comment 2 Oleg Girko 2008-03-21 15:38:13 UTC
This is because offline messages are 8-bit non-Unicode, so encoding for non-Unicode message must be the same on sender and receiver. Set your ICQ account's default encoding in Kopete to "Windows-1251", this should fix the problem.
Comment 3 Egor 2008-03-21 15:39:49 UTC
It's already set to Windows-1251. The problem is still here.
Comment 4 Roman Jarosz 2008-03-21 23:40:38 UTC
Hi, I'm working on it, I should have a patch ready on sunday or monday.

Oleg actually if there are non latin1 characters in message ICQ and AIM send it as unicode (even the offline messages)
Comment 5 Roman Jarosz 2008-03-23 21:33:58 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 6 Roman Jarosz 2008-03-23 21:41:53 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