Le mardi 9 octobre 2007, Gael Beaudoin a écrit :
> On Monday 08 October 2007 10:27:38 Olivier Goffart wrote:
>
> [...]
>
> > > > QUrl::toPercentEncoding( str.toUtf8() );
> > >
> > > Oh ! Indeed, it works. Thanks :)
> > > But there seems to be some side effects. For example, I get this
> > > message after a successful login :
> > >
> > > "Unhandled MSN error code 911
> > > Please fill a bug report with a detailed description and if possible
> > > the last console debug output."
> > >
> > > I'll try to see what's the problem.
> >
> > You need to paste the debug output, but i fear this is caused by "double
> > unicode"
> >
> > Maybe
> >
> > QString str2 = QString::fromUtf8 ( QUrl::toPercentEncoding( str.toUtf8
> > () ).toLatin1() );
> >
> > The problem is that IIRC MSN only encode some of the character (espaces)
> > Even if the above works, it may be faster to implement our own loop
> > looking for %xx.
>
> I've tried several things and ... after removing my old contactlist.xml, it
> works correctly with mattr's suggestion. Apparently no regression or
> bizarre behaviour.

And does accentuated characters in nicknames works ok now ?


>
> So here's the oneliner. Please test and commit if ok. I've an svn account
> but my ssh key it several thousands km away.
>
> Index: msnsocket.cpp
> ===================================================================
> --- msnsocket.cpp       (révision 723176)
> +++ msnsocket.cpp       (copie de travail)
> @@ -784,7 +784,7 @@
>
>  QString MSNSocket::unescape( const QString &str )
>  {
> -       QString str2 = QUrl::fromPercentEncoding( str.toLatin1() );
> +        QString str2 = QUrl::fromPercentEncoding( str.toUtf8() );
>         //remove msn+ colors code
>         str2 = str2.replace( QRegExp("[\\x1-\\x8]"), "" ); // old msn+
> colors // added by kaoul <erwin.kwolek at gmail.com>
> _______________________________________________
> kopete-devel mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/kopete-devel


Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to