[kopete-bugs] [Bug 131425] Meanwhile & Accents and other spanish used characters
Andrea Iacovitti
aiacovitti at libero.it
Mon Jan 19 13:53:16 CET 2009
http://bugs.kde.org/show_bug.cgi?id=131425
--- Comment #5 from Andrea Iacovitti <aiacovitti libero it> 2009-01-19 13:53:14 ---
I applied the following patch on kopete (kde 3.5.10) and the problem with
accented characters has gone.
It consists in converting messages on utf8 before send or display. I'm not
expert, may be this is a "dirty" patch, but anyway it works for me.... upstream
developers will know better than me if side effects are triggered...
Regards.
Andrea.
--- kdenetwork/kopete/protocols/meanwhile/meanwhilesession.cpp 2009-01-19
12:17:30.000000000 +0100
+++ kdenetwork/kopete/protocols/meanwhile/meanwhilesession.cpp 2009-01-19
12:18:01.000000000 +0100
@@ -351,7 +351,7 @@
mwConversation_open(conv);
} else if (!mwConversation_send(conv, mwImSend_PLAIN,
- message.plainBody().ascii())) {
+ message.plainBody().utf8())) {
convdata->chat->appendMessage(message);
convdata->chat->messageSucceeded();
}
@@ -808,7 +808,7 @@
for (it = convdata->queue->begin(); it != convdata->queue->end();
++it) {
mwConversation_send(conv, mwImSend_PLAIN,
- (*it).plainBody().ascii());
+ (*it).plainBody().utf8());
convdata->chat->appendMessage(*it);
convdata->chat->messageSucceeded();
}
@@ -857,7 +857,7 @@
case mwImSend_PLAIN:
{
Kopete::Message message(convdata->contact, account->myself(),
- QString((char *)msg), Kopete::Message::Inbound);
+ QString::fromUtf8((char *)msg), Kopete::Message::Inbound);
convdata->chat->appendMessage(message);
}
break;
--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the kopete-bugs
mailing list