[Qt-interest] [SOLVED] Howto decode escaped unicode string ?

Aaron Lewis aaron.lewis1989 at gmail.com
Mon Mar 22 07:44:27 CET 2010


Thanks Denic , both QUrl::fromPercentEncoding() & 
QUrl::toPercentEncoding() helps !

Denis Akhmetzyanov wrote:
> Hi,
> May be QUrl::fromPercentEncoding() can help.
>
> 2010/3/18 Aaron Lewis <aaron.lewis1989 at gmail.com 
> <mailto:aaron.lewis1989 at gmail.com>>
>
>     Hi,
>        I was trying to change the unicode string to normal strings.
>     (decode
>     escaped string)
>
>        Things like this: %E4%BD%A0%E5
>
>        You see , they are not Ascii Code , if i use
>     QByteArray::fromHex , i
>     got unwanted things.
>
>        Do anyone has ideas to solve this problem ?
>
>        Will appreciate your help ;-)
>
>     --
>     Best Regards,
>     Aaron Lewis - PGP: 0x4A6D32A0
>     FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
>     irc: A4r0n on freenode
>
>     _______________________________________________
>     Qt-interest mailing list
>     Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
>     http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode




More information about the Qt-interest-old mailing list