[Kde-pim] decodeRFC2047String
Thomas McGuire
mcguire at kde.org
Mon Aug 24 22:06:26 BST 2009
Hi,
On Monday 24 August 2009 22:47:24 you wrote:
> QString decodeMailtoUrl( const QString& url )
> {
> QString result;
> result = KUrl::fromPercentEncoding( url.toLatin1() );
> result = KMMsgBase::decodeRFC2047String( result.toLatin1() );
> return result;
> }
>
> is wrong, too ? And it needs to use toUtf8() also ?
fromPercentEncoding() is needed here I think, since it operates on a string,
and not on a Url which has path(). IIRC it is called when passing a mailto
from command line.
Regards,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20090824/00a013a0/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list