Bug 89200 - Sending Messages to GAIM users contain corrupt encoding
Summary: Sending Messages to GAIM users contain corrupt encoding
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: ICQ and AIM Plugins (show other bugs)
Version: 0.9.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 89310 89960 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-09 22:31 UTC by Mario Lipinski
Modified: 2004-09-22 17:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Lipinski 2004-09-09 22:31:49 UTC
Version:           0.9.0 (using KDE KDE 3.3.0)
Installed from:    Debian testing/unstable Packages
OS:                Linux

When i send messages to gaim users with german umlauts in it the receiver just gets an error message.

See also: http://sourceforge.net/tracker/index.php?func=detail&aid=1017857&group_id=235&atid=100235
Comment 1 Gustavo Pichorim Boiko 2004-09-13 17:06:44 UTC
CVS commit by boiko: 

CCMAIL: 89200-done@bugs.kde.org
Backporting release 1.9 (outgoing message's encoding fix)
 


  M +5 -1      oscar_fam04.cpp   1.8.2.1


--- kdenetwork/kopete/protocols/oscar/oscarsocket/oscar_fam04.cpp  #1.8:1.8.2.1
@@ -962,5 +962,9 @@ void OscarSocket::sendIM(const QString &
                 {
                         //kdDebug(14150) << k_funcinfo << "Going to encode as US-ASCII" << endl;
-                        charset=0x0000; // send US-ASCII
+                        // We are forcing kopete to send messages using ISO-8859-1
+                        // It's a hack and should be reimplemented in a better way
+                        charset=0x0003;
+                        codec=QTextCodec::codecForMib(4);
+                        //kdDebug(14150) << k_funcinfo << "Now trying ISO-8859-1" << endl;
                 }
                 else
Comment 2 Gustavo Pichorim Boiko 2004-09-13 17:07:29 UTC
This fix will appear in KDE 3.3.1
Comment 3 Matt Rogers 2004-09-13 17:22:56 UTC
*** Bug 89310 has been marked as a duplicate of this bug. ***
Comment 4 Thiago Macieira 2004-09-13 23:49:32 UTC
Please note that this appears to be a gaim bug/problem. People are reporting such problems with senders using licq as well as some version of the official ICQ for Windows client.

AFAIU, the messages sent with charset=0x0000 (i.e., charset unknown/locale) get interpreted by gaim as "us-ascii", so it'll bark.

As a workaround, add a non-locale character to your message (like € on Latin 1, or ŋ, ħ, etc.) so Kopete sends an UTF-8 message, which will be properly decoded.
Comment 5 Mario Lipinski 2004-09-14 00:56:30 UTC
this is an issue concerning kopete cause it sended messages containing latin1 chars as us-ascii which gaim handels likely correct.
but there will also be changes to gaim handling this more tolerant.

after all these are quite dirty hacks so a proper charset negotiation shall be implemented. maybe reopen this one?
Comment 6 Matt Rogers 2004-09-22 17:29:13 UTC
*** Bug 89960 has been marked as a duplicate of this bug. ***