Mercurial > pidgin
comparison src/protocols/yahoo/util.c @ 8955:eb3c59b0a16c
[gaim-migrate @ 9728]
This makes characters we can't convert to iso-8859-1 turn into ?'s instead
of unicode escape things like \x{xxxx}. I decided this was slightly less
ugly, but it still sucks. It only happens for status messages and group names
and the like, btw.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Sun, 16 May 2004 18:35:42 +0000 |
parents | 92cbf9713795 |
children | 76125b842b23 |
comparison
equal
deleted
inserted
replaced
8954:c60f82d78dea | 8955:eb3c59b0a16c |
---|---|
50 if (utf8 && *utf8) /* FIXME: maybe don't use utf8 if it'll fit in latin1 */ | 50 if (utf8 && *utf8) /* FIXME: maybe don't use utf8 if it'll fit in latin1 */ |
51 return g_strdup(str); | 51 return g_strdup(str); |
52 | 52 |
53 to_codeset = "ISO-8859-1"; | 53 to_codeset = "ISO-8859-1"; |
54 | 54 |
55 ret = g_convert_with_fallback(str, strlen(str), to_codeset, "UTF-8", NULL, NULL, NULL, NULL); | 55 ret = g_convert_with_fallback(str, strlen(str), to_codeset, "UTF-8", "?", NULL, NULL, NULL); |
56 if (ret) | 56 if (ret) |
57 return ret; | 57 return ret; |
58 else | 58 else |
59 return g_strdup(""); | 59 return g_strdup(""); |
60 } | 60 } |