From 34ec0df769f1a0532cbef45593cf174d111ae200 2012-07-17 14:53:00 From: Arnt Gulbrandsen Date: 2012-07-17 14:53:00 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. --- diff --git a/backends/libcommuni/singleircnetworkplugin.cpp b/backends/libcommuni/singleircnetworkplugin.cpp index cce79c7b59a4400627f3a97b2aaa2b46e7c0e19b..1f30677473d3df80d941c5e0e9c6068f97587aa9 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;