From 6f8a6e66ccf013e7afe46bd19580d9300047a9ea Mon Sep 17 00:00:00 2001 From: Arnavion Date: Sun, 18 Jan 2015 02:10:05 -0800 Subject: Detect unknown server encodings and set to UTF-8. --- src/common/server.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/common') diff --git a/src/common/server.c b/src/common/server.c index f9ca809e..d09f6c40 100644 --- a/src/common/server.c +++ b/src/common/server.c @@ -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 { -- cgit 1.4.1