mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-25 18:52:22 -05:00
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