FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Detect unknown server encodings and set to UTF-8. · programcoder/hexchat@6f8a6e6 · GitHub

Commit 6f8a6e6

Browse files
Arnavion
committed
Detect unknown server encodings and set to UTF-8.
1 parent 5749c53 commit 6f8a6e6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/common/server.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,6 +1657,12 @@ server_set_encoding (server *serv, char *new_encoding)
16571657
g_free (serv->encoding);
16581658
serv->encoding = g_strdup ("UTF-8");
16591659
}
1660+
1661+
else if (!servlist_check_encoding (serv->encoding))
1662+
{
1663+
g_free (serv->encoding);
1664+
serv->encoding = g_strdup ("UTF-8");
1665+
}
16601666
}
16611667
else
16621668
{

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL