mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-11-07 00:35:39 +00:00
Use g_utf8_make_valid if available for cleaner utf8 handling (#2065)
This commit is contained in:
1 parent
0c494a9c24
commit
07f1fc60da
2 files changed
+15
-1
No files matched your search
+4
-1
@@ -258,7 +258,10 @@ static void
|
||||
server_inline (server *serv, char *line, gssize len)
|
||||
{
|
||||
gsize len_utf8;
|
||||
line = text_convert_invalid (line, len, serv->read_converter, unicode_fallback_string, &len_utf8);
|
||||
if (!strcmp (serv->encoding, "UTF-8"))
|
||||
line = text_fixup_invalid_utf8 (line, len, &len_utf8);
|
||||
else
|
||||
line = text_convert_invalid (line, len, serv->read_converter, unicode_fallback_string, &len_utf8);
|
||||
|
||||
fe_add_rawlog (serv, line, len_utf8, FALSE);
|
||||
|
||||
|
||||
Reference in new issue
Block a user