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.
This commit is contained in:
Arnt Gulbrandsen 2012-07-17 13:53:00 +01:00
parent d416f2c257
commit 34ec0df769

View file

@ -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;