Mercurial > pidgin.yaz
changeset 4166:481c51159627
[gaim-migrate @ 4395]
Yay for Paco-Paco and ISO 8859-1 in away messages and info!!!
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 02 Jan 2003 01:18:21 +0000 |
parents | 07a3d1fae88f |
children | 7002b6f16bdf |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Wed Jan 01 03:19:08 2003 +0000 +++ b/src/protocols/oscar/oscar.c Thu Jan 02 01:18:21 2003 +0000 @@ -2646,6 +2646,9 @@ case 0: utf8 = g_strndup(text, text_len); break; + case AIM_IMFLAGS_ISO_8859_1: + utf8 = g_convert(text, text_len, "UTF-8", "ISO-8859-1", NULL, NULL, NULL); + break; case AIM_IMFLAGS_UNICODE: utf8 = g_convert(text, text_len, "UTF-8", "UCS-2BE", NULL, NULL, NULL); break; @@ -5006,6 +5009,8 @@ charset += 8; if (!strcmp(charset, "\"us-ascii\"")) { return 0; + } else if (!strcmp(charset, "\"iso-8859-1\"")) { + return AIM_IMFLAGS_ISO_8859_1; } else if (!strcmp(charset, "\"unicode-2-0\"")) { return AIM_IMFLAGS_UNICODE; } else {