1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-29 04:32:15 -05:00

Detect unknown server encodings and set to UTF-8.

This commit is contained in:
Arnavion 2015-01-18 02:10:05 -08:00
parent 5749c53484
commit 6f8a6e66cc

View File

@ -1657,6 +1657,12 @@ server_set_encoding (server *serv, char *new_encoding)
g_free (serv->encoding);
serv->encoding = g_strdup ("UTF-8");
}
else if (!servlist_check_encoding (serv->encoding))
{
g_free (serv->encoding);
serv->encoding = g_strdup ("UTF-8");
}
}
else
{