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

NSString URL decode?

I have tried a lot of approaches out there, but this tiny little string just cannot be URL decoded. NSString *decoded; NSString *encoded = @"fields=ID%2CdeviceToken"; decoded = (__bridge…
Geri Borbás
  • 15,810
  • 18
  • 109
  • 172
17
votes
2 answers

What is/are the actual practical difference/s in functioning of the built-in functions setcookie() and setrawcookie() in PHP?

I'm learning one of the most important concept of Cookies in PHP in detail. While studying Cookies I come to know that "The value of the cookie is automatically URLencoded when sending the cookie, and automatically decoded when received (to prevent…
PHPLover
  • 1
  • 51
  • 158
  • 311
16
votes
5 answers

Decoding URL encoded UTF-8 strings in VBScript

I need to URL decode a string in a VBScript. The string may contain Unicode characters which are encoded as multiple bytes as per UTF-8. So for example "Paris%20%E2%86%92%20Z%C3%BCrich" would decode to "Paris → Zürich". To do the job, I'm using a…
GOTO 0
  • 42,323
  • 22
  • 125
  • 158
15
votes
4 answers

How to Decode the & from a URL so that header() works (urldecode not working)

I have the following URL: $url = 'http://mysite.com/?p=welcome&x=1&y=2'; I need to decode it so that header("Location: $url"); actually works. However, using urldecode($url) is not working because it's not decoding the & -> & and so the…
ProgrammerGirl
  • 3,157
  • 7
  • 45
  • 82
14
votes
4 answers

SQL Server Url Decoding

I need to run a query against a legacy table that stores URL encoded text. I need this text to be decoded in my results. How do I achieve this?
Jordan Allan
  • 4,408
  • 7
  • 32
  • 35
13
votes
3 answers

URLDecoder is converting '+' into space

I have a hash key in one of my query params which can have + char with other special chars. The issue is when this URL is getting decoded URLDecoder converts + char into space. Is there a way we can enforce URLDecoder not to convert '+' into space.
Nighthacks
  • 410
  • 1
  • 4
  • 13
13
votes
2 answers

java how to decode get url parameter received throw BeanParam

I receive a GET response to this web service @GET @Path("/nnnnnn") public Response pfpfpfpf(@BeanParam NNNNNN n) The class NNNNN has: @QueryParam("parameter") private String parameter; And for that parameter there is a get and set. I send a…
Marco Dinatsoli
  • 10,322
  • 37
  • 139
  • 253
13
votes
1 answer

Calling UrlDecode in a C# .NET 4.0 Visual Studio 2010 Console Application?

OK, for some reason Microsoft removed System.Web but we can import System.Net.WebUtility and call HtmlDecode(), but how can we call UrlDecode()? Please answer for .NET 4.0/VS2010 B2 ONLY.
AUSTX_RJL
  • 684
  • 1
  • 12
  • 20
12
votes
1 answer

Does PHP automatically do urldecode() on $_POST?

According to http://php.net/manual/en/function.urldecode.php, PHP does urldecode() on $_GET and on $_REQUEST (which contains $_POST). But is directly calling $_POST already decoded?
Ethan Allen
  • 14,425
  • 24
  • 101
  • 194
11
votes
3 answers

php URL decode get '+' from URL

So I am trying to encode/decode a url that when decoded will return the encoded + symbols from teh url. For example, I encodewebsite.com/index.php?eq=1+12 which when encoded turns the + into %2B, as it should. When I retrieve the value from…
Ed R
  • 2,129
  • 6
  • 24
  • 32
10
votes
6 answers

Using awk printf to urldecode text

I'm using awk to urldecode some text. If I code the string into the printf statement like printf "%s", "\x3D" it correctly outputs =. The same if I have the whole escaped string as a variable. However, if I only have the 3D, how can I append the \x…
Johan
  • 405
  • 5
  • 14
10
votes
1 answer

How to decode a html string using xslt

I am trying to style an rss feed using xslt. I want to display an image that is stored in the tag on the feed. The problem is it is encoded to display as text on the page instead of being rendered. The following is an example of part of the…
John ClearZ
  • 952
  • 2
  • 9
  • 16
9
votes
1 answer

ASP.NET Web Api and UrlDecode

Is this a bug in the framework? I have to use HttpUtility.UrlDecode here. I thought things were automatically decoded in MVC. public Thingy[] Get(string id) { var actualId = HttpUtility.UrlDecode(id ?? string.Empty); var…
Antony Scott
  • 21,690
  • 12
  • 62
  • 94
9
votes
2 answers

Query String is decoded by Spring Framework

I'm having a weird problem here, not sure if this is the bug though. The project is running under Spring Framework. The view:
Sqeezer
  • 1,267
  • 2
  • 14
  • 23
9
votes
2 answers

How to decode "\u0026" in a URL?

I want decode URL A to B: A) http:\/\/example.com\/xyz?params=id%2Cexpire\u0026abc=123 B) http://example.com/xyz?params=id,expire&abc=123 This is a sample URL and I look for a general solution not A.Replace("\/", "/")... Currently I use…
Xaqron
  • 29,931
  • 42
  • 140
  • 205
1
2
3
29 30