Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Php's urldecode in QT?
Forum Update on Monday, May 27th 2025

Php's urldecode in QT?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 4.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hellagot
    wrote on 16 Feb 2012, 11:30 last edited by
    #1

    Hi there,

    is there an easy way to decode url encoded strings, ecactly as php's function urldecode() is working, so for example

    @"hello% 20world% 20i% 20am% 20url% 20encoded"@

    (ofcourse no blank after the %, the forum did not allow to input it as percent20)

    gets

    @"hello world i am url encoded"@

    I have seen that QUrl have similar functions, but its not a url, its a plain string without hostname and stuff.

    Thank you in advance.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on 16 Feb 2012, 11:53 last edited by
      #2

      Yes, check class reference of "QUrl":http://developer.qt.nokia.com/doc/qt-4.8/qurl.html. You can use "QUrl::fromPercentEncoding":http://developer.qt.nokia.com/doc/qt-4.8/qurl.html#fromPercentEncoding to decode the URL.

      http://anavi.org/

      1 Reply Last reply
      0

      2/2

      16 Feb 2012, 11:53

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved