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
3
votes
4 answers

How to decode url containing Japanese char in Delphi prior 2009?

I need to decode: file://localhost/G:/test/%E6%B0%97%E3%81%BE%E3%81%90%E3%82%8C%E3%83%AD%E3%83%9E%E3%83%B3%E3%83%86%E3%82%A3%E3%83%83%E3%82%AF.mp3 into file://localhost/G:/test/気まぐれロマンティック.mp3 How to do it in Delphi prior 2009 (I use Delphi 2006)…
Irwan
  • 783
  • 1
  • 13
  • 28
3
votes
2 answers

decoding Microsoft Safelink URL in Python

import re import urllib import HTMLParser urlRegex =…
usurexc
  • 71
  • 1
  • 3
3
votes
2 answers

Why would Apache be URL decoding my query string?

My Web host has refused to help me with this, so I'm coming to the wise folks here for some help "black-box debugging". Here's an edited version of what I sent to them: I have two (among other) domains at dreamhost: 1) thefigtrees.net 2)…
Lee
3
votes
2 answers

django: how to consume incoming POST data as a file-like obj for streaming processing

I'm using python + Django to handle incoming web requests that can post a large amount of JSON attached as one of the POST data fields (e.g. var1=abc&json_var=lots_of_data&other_var=xxx). I'd like to process the JSON in a streaming fashion with my…
mwag
  • 3,557
  • 31
  • 38
3
votes
4 answers

ASP.Net MVC 2.0 : unescaping URL query parameters

I have following URL: http://localhost:8041/Reforge.aspx?name=Cyan%ECde&realmId=1 notice %EC in the value of name parameter. %EC = 236 = ì (igrave) In my action method: public ActionResult Index(string name, int realmId) {...} name[4] is a…
THX-1138
  • 21,316
  • 26
  • 96
  • 160
3
votes
1 answer

Using UrlDecode from a WinForms app

I am creating a test app that will work with query string values. I want to use the HttpUtility.UrlDecode. When I try to add a refernce to the System.Web, System.Web is not availble in the list. When I create a web project in the same solution,…
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
3
votes
2 answers

Java URLDecoder decode Percentage Symbol as error

I need to allow user to input various special characters, so i use the java URLDeacoder.decode() method, i tested using println. There is no problem with other special character except this Percentage symbol, it has error during execute. Why is…
hades
  • 4,294
  • 9
  • 46
  • 71
3
votes
2 answers

How to decode json data from post method for android app in php?

I am developing an app, in which I pass the credentials and then pass it through post method. In this page, I want to access the regno and pass value that were filled in the login page. But I am not getting the values. I tried echoing the values as…
Ashwini Purohit
  • 161
  • 2
  • 3
  • 14
3
votes
1 answer

Url encode and routing?

I'm using custom routing in a web forms context. I have some titles (part of my custom route) that have say a question mark character. When I URL encode this text ("Question?") and then pass into my route, I get an HTTP ERROR CODE 400. Apparently,…
Curtis White
  • 6,213
  • 12
  • 59
  • 83
3
votes
1 answer

decodeURIComponent throwing an error 'URI malformed'

As unescape has been deprecated I have chosen decodeURIComponent , but it doesn't work as expected . decodeURIComponent cant decode the following URI…
vimal1083
  • 8,499
  • 6
  • 34
  • 50
3
votes
2 answers

How to correctly use UrlEncode and Decode

So I have a file I am uploading to azure blob storage: C:\test folder\A+B\testfile.txt and two extension methods that help encode my path to make sure it is given a valid azure storage blob name public static string AsUriPath(this string…
JKennedy
  • 18,150
  • 17
  • 114
  • 198
3
votes
1 answer

python url decode %E3

I get some wikipedia URL from freebase dump: url 1: http://pt.wikipedia.org/wiki/Pedro_Miguel_de_Castro_Brand%25C3%25A3o_Costa url 2: http://pt.wikipedia.org/wiki/Pedro_Miguel_de_Castro_Brand%E3o_Costa They both refer to the same page on…
icycandy
  • 1,193
  • 2
  • 12
  • 20
3
votes
2 answers

Decode a url and store to a string with special characters

In one of my programs I have to process an encrypted Url. I want to save the parameter to a string and I want to keep the special characters as they are string input_url ="domain.com/auth?token=%2FhKjSuSAO6ctIrgokvB9hmHJPlHQXqTmpuH9fEPWp8w"; I want…
Sebastian
  • 4,625
  • 17
  • 76
  • 145
3
votes
2 answers

ios - NSString URL decode?

I'm trying to Decode URL,but i'm getting warning message like "NSString may not respond to URLDecode". NSString* token = [[urlStr substringFromIndex:r.location + 1] URLDecode]; Any ideas?
3
votes
2 answers

Ampersand in String causing incorrect length/comparison

I have two strings (which are supposed to be the same). One is pulled from an API result and one is entered by the user. I'm trying to compare them and failing. When I var_dump, I get the following: var_dump($str1); var_dump($str2); string(21)…
user1032752
  • 751
  • 1
  • 11
  • 28