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. Reserved characters URL encoding
Servers for Qt installer are currently down

Reserved characters URL encoding

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.7k Views 1 Watching
  • 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.
  • U Offline
    U Offline
    usamytch
    wrote on 1 Jun 2011, 13:49 last edited by
    #1

    Good day, collagues!

    I want to encode part of my HTTP POST request, which contains XML. I try this:

    @post_data.append(QUrl(xml_array).toEncoded());@

    But ampersands hadn't been encoded. How can I automatically encode ampersands and other URL reserved characters?

    1 Reply Last reply
    0
    • U Offline
      U Offline
      usamytch
      wrote on 1 Jun 2011, 14:06 last edited by
      #2

      Hmm, it seems that I should read documentation more carefully:

      @QByteArray toPercentEncoding ( const QByteArray & exclude = QByteArray(), const QByteArray & include = QByteArray(), char percent = '%' ) const@

      1 Reply Last reply
      0

      1/2

      1 Jun 2011, 13:49

      • Login

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