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. QUrl encoding
Qt 6.11 is out! See what's new in the release blog

QUrl encoding

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 377 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.
  • D Offline
    D Offline
    daviraim
    wrote on last edited by
    #1

    Hi forum,
    Would it be possible to avoid to encode QUrl url for some characters ? I have an url which contains a '{' character which is automatically encoded with a %7B. The server does not support that form of url.
    Thanks for your advices.
    Cheers,
    David.

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      No this is not possible - according to RFC 1738 it's an unsafe character which needs to be escaped. So you should fix your server to accept correct encoded urls.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • D Offline
        D Offline
        daviraim
        wrote on last edited by
        #3

        The problem was that CURL automatically removes the '{' escape character from the url. With CURL, the server does not see this escape character whereas with Qt it was transformed into '%7B'. The server did not see the same requests.
        Thanks for your help.
        Regards.
        D/

        1 Reply Last reply
        0

        • Login

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