mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 16:50:19 +00:00
Use g_utf8_make_valid if available for cleaner utf8 handling (#2065)
This commit is contained in:
@@ -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