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
1 changed files with 6 additions and 0 deletions

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
{