[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    Re: [Kopete-devel] Re: kdenonbeta/kopete/protocols/icq_new
From:       Nick Betcher <nbetcher () kde ! org>
Date:       2002-11-02 15:38:19
[Download RAW message or body]

On Saturday 02 November 2002 08:52 am, Martijn Klingens wrote:
> On Saturday 02 November 2002 15:21, Roberto Selbach Teixeira wrote:
> > The "guilty" line is icqcontact.cpp:230
> >
> > 	sendMessage->Message = msgString.utf8();
> >
> > Removing the utf8() call solves the problem for me, although I'd expect
> > other problems to arise with people with different encodings.
>
> That only works with an explicit conversion from QString to char*, because
> ICQMsg::Message is an STL string.
>
> Qt defines the default conversion as
>
> #ifndef QT_NO_CAST_ASCII
>     // like all ifdef'd code this is undocumented
>     operator char() const { return latin1(); }
> #endif
>
> So changing utf8() into latin1() would indeed solve the problems for most
> people. I still wonder what encoding ICQ sends over the wire though,
> apparently it's not utf8 like e.g. MSN does. :(
>
> Stefan/Nick: any comments?

That's wierd. It could be the ICQ server's fault. I guess I'll switch it to 
latin1 (if someone hasn't already)

_______________________________________________
Kopete-devel mailing list
Kopete-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic