From 34ec0df769f1a0532cbef45593cf174d111ae200 Mon Sep 17 00:00:00 2001 From: Arnt Gulbrandsen Date: Tue, 17 Jul 2012 13:53:00 +0100 Subject: [PATCH] avoid WTF-8. what arrives from XMPP is already UTF-8 encoded, so applying UTF-8 again produces somewhat unfortunate results. this line is not always necessary. before this change, the code was dependent on the locale. --- backends/libcommuni/singleircnetworkplugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/backends/libcommuni/singleircnetworkplugin.cpp b/backends/libcommuni/singleircnetworkplugin.cpp index cce79c7b..1f306774 100644 --- a/backends/libcommuni/singleircnetworkplugin.cpp +++ b/backends/libcommuni/singleircnetworkplugin.cpp @@ -52,6 +52,7 @@ void SingleIRCNetworkPlugin::handleLoginRequest(const std::string &user, const s session->setRealName(FROM_UTF8(legacyName)); session->setHost(FROM_UTF8(m_server)); session->setPort(6667); + session->setEncoding( "utf-8" ); if (!password.empty()) { std::string identify = m_identify;