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 driving me nuts
Forum Updated to NodeBB v4.3 + New Features

QUrl driving me nuts

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 749 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.
  • B Offline
    B Offline
    BrunoFromParis
    wrote on last edited by
    #1

    Hello Everybody,

    I've got a little problem trying to set a QUrl with a "+" sign. The "true" url is http://www.ariva.de/k+s-aktie
    As you notice the + is encoded in +. But if you write

    QUrl u = QUrl("http://www.ariva.de/k+s-aktie")

    then the + is not encoded in "+" and you can't load the page.

    And if I write

    QUrl u = QUrl::fromEncoded("http://www.ariva.de/k+s-aktie"),

    then the + is translated in a "+" sign and the request is made with "http://www.ariva.de/k+s-aktie" which fails (as the first one, logic).

    Meaning you can't make a request with a + (because a + is not encoded in + whereas + is decoded with a +).

    This is driving me nuts, any help would be greatly welcomed.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      BrunoFromParis
      wrote on last edited by
      #2

      I actually meant

      QUrl u = QUrl::fromEncoded(“http://www.ariva.de/k+s-aktie”)

      on the second example, sorry (to make it short, any combination fails)

      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