Detect unknown server encodings and set to UTF-8.
This commit is contained in:
parent
5749c53484
commit
6f8a6e66cc
@ -1657,6 +1657,12 @@ server_set_encoding (server *serv, char *new_encoding)
|
|||||||
g_free (serv->encoding);
|
g_free (serv->encoding);
|
||||||
serv->encoding = g_strdup ("UTF-8");
|
serv->encoding = g_strdup ("UTF-8");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (!servlist_check_encoding (serv->encoding))
|
||||||
|
{
|
||||||
|
g_free (serv->encoding);
|
||||||
|
serv->encoding = g_strdup ("UTF-8");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user