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:
parent
d416f2c257
commit
34ec0df769
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue