Questions tagged [urldecode]

urldecode reverses replacements by urlencode(), which is used to prepare a string for use in a URL by replacing invalid characters such as /, +, ', % etc.

urlencode prepare a string for use in a URL, and urldecode does the reverse operation.

See also

448 questions
6
votes
2 answers

How to URL-encode/decode SELECTED text in Notepad++

There is a question here on stack overflow that answers PART of my question (see link) https://stackoverflow.com/a/17431971/2461910 Unfortunately, this solution is cumbersome, because it always encodes/decodes the ENTIRE current document. My…
FireWingLead
  • 439
  • 6
  • 19
6
votes
1 answer

jQuery urlencode/decode patch help

I'm using this jQuery urlencode and urldecode plugin - very simple and easy to use but it doesn't, in its original form, remove + from the string. The one comment on the home page suggests a patch but I don't know how to implement it. Can anyone…
jay
  • 10,275
  • 5
  • 34
  • 52
6
votes
3 answers

Lua - decodeURI (luvit)

I would like to use decodeURI or decodeURIComponent as in JavaScript in my Lua (Luvit) project. JavaScript: decodeURI('%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82') // result:…
Kosmetika
  • 20,774
  • 37
  • 108
  • 172
6
votes
2 answers

Why is this %2B string being urldecoded?

[This may not be precisely a programming question, but it's a puzzle that may best be answered by programmers. I tried it first on the Pro Webmasters site, to overwhelming silence] We have an email address verification process on our website. The…
Yellowfog
  • 2,323
  • 2
  • 20
  • 36
5
votes
1 answer

In NODE.JS, the newline code (%0A) will decode back to what character?

I have a pretty simple question, but a few simple googling and stachexchange queries were not able to answer it, so i guess i'm missing something here. Here are my simplified parameters: I'm using Javascript. I have a text that needs to get…
TBE
  • 1,002
  • 1
  • 11
  • 32
5
votes
2 answers

How to encode URL in JS and Decode in PHP?

Following is my JS code: window.location.href = 'products.php?price_range=-INFto2000,2001to5000'; My question is how do I encode the URL in javascript & decode it in PHP, such that my browser's navigation bar will show…
Ahmed Syed
  • 1,179
  • 2
  • 18
  • 44
5
votes
1 answer

Qt, QUrl, QUrlQuery: Encoding special character in a query string

I create a URL query like this: QString normalize(QString text) { text.replace("%", "%25"); text.replace("@", "%40"); text.replace("‘", "%27"); text.replace("&", "%26"); text.replace("“", "%22"); …
aviit
  • 1,957
  • 1
  • 27
  • 50
5
votes
3 answers

%20 is added instead of spaces

I guess this is small issue but yet i had to ask here since i am running short in my project. When I pass string to the function in another controller, it changes spaces into %20 sign. I guess the controller thinks the string passed as url and…
Afghan Host
  • 250
  • 3
  • 6
  • 12
4
votes
5 answers

Encoded URL does not work

I am confused about encoded URLs. For example, when I write my browser: stackoverflow.com/questions I can successfully view the page. However, when I write: stackoverflow.com%2Fquestions I am unable to view. Since %2F means "/", I want to…
yihlamur
  • 382
  • 1
  • 5
  • 17
4
votes
1 answer

Decode char UTF8 escapes in Boost Spirit

question asked: Spirit-general list Hello all, I'm not sure if my subject is correct, but the testcode will probably show what I want to achieve. I'm trying to parse things like: '%40' to '@' '%3C' to '<' I have a minimal testcase below. I don't…
sehe
  • 374,641
  • 47
  • 450
  • 633
4
votes
2 answers

why javascript protocol decode the URL automatically?

I am confused about why javascript protocol decodes the encoded URL, for example: press function myFunction(id) { alert(id); //it will generate =cDO4w67epn64o76 } I…
mina
  • 141
  • 1
  • 10
4
votes
0 answers

How to send AJAX request without encoding url

I am trying to get data from salesforce API using SOQL method. Problem is that when send ajax get request it encodes url that results in failure of $ajax request. How can I send plain url in ajax request without encoding url. Sample request is…
Faisal Ijaz
  • 1,812
  • 2
  • 12
  • 23
4
votes
2 answers

How to remove amp; from URL

I am getting a URL that contains amp;. Is there any way to remove this as currently I tried URLDecode function, but It's not working. Do I need to remove It using simple string replacement or Is there any better way to do this?
Jyotish Singh
  • 2,065
  • 3
  • 20
  • 28
4
votes
1 answer

PHP - auto detect (raw)urlencode

A PHP file is receiving a URL encoded string via GET. However, some scripts may send strings encoded with the urlencode() function, while other scripts may send strings encoded with the rawurlencode() function. What would be the best way to check…
Mindaugas Li
  • 1,071
  • 5
  • 15
  • 37
4
votes
1 answer

PHP GET parameters automatic urldecode

I have a website that just moved from one server to another. On the old server the get-parameters of a request were automatically 'url decoded'. Now, on my new server, when I try to retrieve a GET parameter I don't get the url decoded value but the…
Terrabythia
  • 2,031
  • 3
  • 19
  • 29