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
394
votes
5 answers

Url decode UTF-8 in Python

In Python 2.7, given a URL like example.com?title=%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D0%B2%D0%B0%D1%8F+%D0%B7%D0%B0%D1%89%D0%B8%D1%82%D0%B0, how can I decode it to the expected result, example.com?title==правовая+защита? I tried…
swordholder
  • 4,519
  • 3
  • 18
  • 14
175
votes
5 answers

How do I decode a URL parameter using C#?

How can I decode an encoded URL parameter using C#? For example, take this URL: my.aspx?val=%2Fxyz2F
Tom
  • 6,725
  • 24
  • 95
  • 159
157
votes
9 answers

JavaScript URL Decode function

What's the best JavaScript URL decode utility? Encoding would be nice too and working well with jQuery is an added bonus.
at.
  • 50,922
  • 104
  • 292
  • 461
119
votes
7 answers

How do I decode a string with escaped unicode?

I'm not sure what this is called so I'm having trouble searching for it. How can I decode a string with unicode from http\u00253A\u00252F\u00252Fexample.com to http://example.com with JavaScript? I tried unescape, decodeURI, and decodeURIComponent…
styfle
  • 22,361
  • 27
  • 86
  • 128
106
votes
19 answers

Encode/Decode URLs in C++

Does anyone know of any good C++ code that does this?
user126593
  • 2,707
  • 4
  • 21
  • 16
104
votes
25 answers

How to decode URL-encoded string in shell?

I have a file with a list of user-agents which are encoded. E.g.: Mozilla%2F5.0%20%28Macintosh%3B%20U%3B%20Intel%20Mac%20OS%20X%2010.6%3B%20en I want a shell script which can read this file and write to a new file with decoded strings. Mozilla/5.0…
user785717
  • 1,245
  • 2
  • 9
  • 8
56
votes
7 answers

URL decode in iOS

I am using Swift 1.2 to develop my iPhone application and I am communicating with a http web service. The response I am getting is in query string format (key-value pairs) and URL encoded in .Net. I can get the response, but looking the proper way…
JibW
  • 4,538
  • 17
  • 66
  • 101
51
votes
3 answers

Javascript equivalent to php's urldecode()

I wrote a custom xml parser and its locking up on special characters. So naturally I urlencoded them into my database. I can't seem to find an equivalent to php's urldecode(). Are there any extentions for jquery or javascript that can accomplish…
Derek Adair
  • 21,846
  • 31
  • 97
  • 134
41
votes
6 answers

How to know if a URL is decoded/encoded?

I am using Javascript method decodeURIComponent to decode an encoded URL. Now I am having an issue, that sometimes the URL is get encoded twice during redirection between servers, sometimes it is encoded only once. I want to check that if the URL…
Tapas Bose
  • 28,796
  • 74
  • 215
  • 331
36
votes
6 answers

URL Decoding in PHP

I am trying to decode this URL string using PHP's urldecode function: urldecode("Ant%C3%B4nio+Carlos+Jobim"); This is supposed to output... 'Antônio Carlos Jobim' ...but instead is ouptutting this 'Antônio Carlos Jobim' I've tested the string in…
Brandon Jackson
  • 785
  • 1
  • 5
  • 10
31
votes
6 answers

How can I "URL decode" a string in Emacs Lisp?

I've got a string like "foo%20bar" and I want "foo bar" out of it. I know there's got to be a built-in function to decode a URL-encoded string (query string) in Emacs Lisp, but for the life of me I can't find it today, either in my lisp/ folder or…
Ken
  • 5,074
  • 6
  • 30
  • 26
29
votes
5 answers

How to URL Decode in iOS - Objective C

The stringByReplacingPercentEscapesUsingEncoding method is not working properly as it's not decoding special symbols that dont start with a % character, i.e., the + character. Does anyone know of a better method to do this in iOS? Here's what I'm…
VinnyD
  • 3,500
  • 9
  • 34
  • 48
24
votes
2 answers

How to decode the url in php where url is encoded with encodeURIComponent()

How to decode the url in php where url is encoded with encodeURIComponent()? I have tried the urldecode() but then also..i don't the url which i have encoded... I have to do this in php..
Nitz
  • 1,690
  • 11
  • 36
  • 56
21
votes
8 answers

MySQL SELECT with URL Decode

Is there a way to perform a MySQL query and have one of the columns in the output directly urldecode, rather than have PHP do it. For example this table 'contacts' would contain, ------------------------------------ |name |email …
Rob
  • 1,089
  • 3
  • 11
  • 19
21
votes
2 answers

How to decode a (doubly) 'url-encoded' string in python

Tried decoding a url-encoded string in the following way some_string = 'FireShot3%2B%25282%2529.png' import urllib res = urllib.unquote(some_string).decode() res u'FireShot3+%282%29.png' Original string is FireShot3 (2).png. Any help would be…
user1986059
  • 433
  • 1
  • 3
  • 11
1
2 3
29 30