# HG changeset patch # User Mark Doliner # Date 1093213280 0 # Node ID 0d02a51ea1c3e86a03333e6df9786a35291a519d # Parent 2e3c63811475d4dc8399eb0dc562bc94e63fe6f3 [gaim-migrate @ 10702] Make non-ascii aim chat messages work again committer: Tailor Script diff -r 2e3c63811475 -r 0d02a51ea1c3 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Sun Aug 22 21:30:53 2004 +0000 +++ b/src/protocols/oscar/oscar.c Sun Aug 22 22:21:20 2004 +0000 @@ -6421,6 +6421,12 @@ return -E2BIG; } + if (charset == AIM_CHARSET_ASCII) + charsetstr = "us-ascii"; + else if (charset == AIM_CHARSET_UNICODE) + charsetstr = "unicode-2-0"; + else if (charset == AIM_CHARSET_CUSTOM) + charsetstr = "iso-8859-1"; aim_chat_send_im(od->sess, c->conn, 0, buf2, len, charsetstr, "en"); g_free(buf2);