Ignore:
Timestamp:
2006-05-22T09:11:49Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
226fce1
Parents:
619a681
Message:

Trying to fix charset issues with outgoing AIM chat messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r619a681 r73cf7fd  
    25022502        int ret;
    25032503        guint8 len = strlen(message);
     2504        guint16 flags;
    25042505        char *s;
    25052506       
     
    25102511                if (*s & 128)
    25112512                        break;
    2512                
     2513       
     2514        flags = AIM_CHATFLAGS_NOREFLECT;
     2515       
    25132516        /* Message contains high ASCII chars, time for some translation! */
    25142517        if (*s) {
     
    25172520                   If we can't, fall back to UTF16. */
    25182521                if ((ret = do_iconv("UTF-8", "ISO8859-1", message, s, len, BUF_LONG)) >= 0) {
     2522                        flags |= AIM_CHATFLAGS_ISO_8859_1;
    25192523                        len = ret;
    25202524                } else if ((ret = do_iconv("UTF-8", "UNICODEBIG", message, s, len, BUF_LONG)) >= 0) {
     2525                        flags |= AIM_CHATFLAGS_UNICODE;
    25212526                        len = ret;
    25222527                } else {
     
    25292534        }
    25302535               
    2531         ret = aim_chat_send_im(od->sess, ccon->conn, AIM_CHATFLAGS_NOREFLECT, s, len);
     2536        ret = aim_chat_send_im(od->sess, ccon->conn, flags, s, len);
    25322537               
    25332538        if (s != message) {     
Note: See TracChangeset for help on using the changeset viewer.