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

PHP URL decode GET

I have been using URL decode on encoded URL variables from $_get. The current problem I am facing is I have a URL encoded like…
Albert Renshaw
  • 17,282
  • 18
  • 107
  • 195
3
votes
2 answers

Fiddler2 - How do I URlDecode the Request body for Viewing?

I'm using Fiddler to debug some particularly painful AJAX code, and in the POST requests that are being sent across to the server the Request BODY is UrlEncoded. This leads to me having to cut and paste the text into an online app to UrlDecode the…
user674052
  • 81
  • 3
  • 6
3
votes
2 answers

How to encode or decode URL in objective-c

Is there something like +(NSString *) URLencode: (NSString *) someString +(NSString *) URLdecode: (NSString *) someString If so, how to implement it? Note to downvoters. This is NOT a simple question. I need something that can comprehensively do…
user4951
  • 32,206
  • 53
  • 172
  • 282
3
votes
2 answers

What is the correct way to encodeURIcomponent non utf-8 characters and decodes them accordingly?

I have a Javascript bookmarklet that uses encodeURIcomponent to pass the URL of the current page to the server side, and then use urldecode on the server side to get the characters back. The problem is, when the encoded character is not in utf-8…
lazycai
  • 31
  • 1
  • 3
2
votes
2 answers

get specific data from URL in android/java?

I have a url like this https://example.com%3A443:443/www/36d8e8c94aae45048ba9f92f8e62c7b2/file/content?path=%2Fmnt%2Fsdcard%2Fvideo%2Fsample_mpeg4.mp4&yyy=9a7491a1f5664336b5c6bf431f42852c3749ed54722736ec748746858a710c44 I need to get the path of…
Preethi
  • 2,112
  • 7
  • 38
  • 54
2
votes
2 answers

how to safely eval an urlencode-ed dictionary in Python?

I should communicate with an online service that sends me the following data urlencoded: data_to_process = {...} args = {'args0': data_to_process, 'action': 'save'} result = urllib2.urlopen(..., urllib.urlencode(args), ...) The main data of…
Akasha
  • 2,162
  • 1
  • 29
  • 47
2
votes
1 answer

Does URL querystring encoding preserve order for multi-valued keys?

http://www.example.com?a=1&a=2 has a valid form-urlencoded querystring and has two values (1 and 2) for the key a. Is there any spec or standard for URL consumers guaranteeing ordering (or lack thereof) of parsed values? Do common implementations…
hurrymaplelad
  • 26,645
  • 10
  • 56
  • 76
2
votes
3 answers

Spring boot @PathVariable cannot contains slash/semicolon/percent characters

I have a REST API with spring-boot 2.5.5 with spring-security 5.5.2. On many API endpoints I use @PathVariable for resources identifiers. But when some special (but valid in my domain context) characters are passed as PathVariables, the request…
Dartz
  • 165
  • 12
2
votes
2 answers

utf-8 problem with rawurldecode and browser address bar issue

I have some problems with rawurldecode with Turkish character set. I have a turkish word (yeşil means green) which needs to be passed as GET parameter. Here is my generated link. search.php?renk=ye%C5%9Fil When I clicked this link browser address…
2
votes
1 answer

Java decode string escaped by Actionscript

I have an environment where strings are percent encoded by Actionscript escape() function and then passed to Java for decoding. I have for example a test string "m é". It is passed to Actionscript escape() that outputs "m%20%E9" When I try to decode…
Paull
  • 1,020
  • 1
  • 12
  • 21
2
votes
1 answer

The key specified is not a valid key for this encryption: Key size is not valid. Got key length of: 15

I keep getting an error message when trying to send the key through url with encodeforURL() and decodefromUrl(). The code example is below. This is my entry page: key = generateSecretKey(("AES"),128); data = encrypt(serializeJSON(pg_info), key,…
espresso_coffee
  • 5,980
  • 11
  • 83
  • 193
2
votes
1 answer

How to send correct translation in cookie value in php

I have a basic cookie that is incorrectly encoding (or incorrectly decoding) the URL characters. The cookie will set, however the value isn't encoding properly. Cookie value needs to be: https://mywebsite.com, however once I set the cookie, it…
RigelVII
  • 23
  • 5
2
votes
1 answer

Why is v-html not rendering html

I am trying to render some html coming from an api. The v-html tag is outputting the

tags onto the page instead of treating them as html. This is the data I am rendering: Bio:"<p>Throughout his PhD and post-doctoral research, Dr David…

Adam Adams
  • 63
  • 10
2
votes
2 answers

How to decode %3F to '?' and %3D to '=' in angular 7?

I am getting this url redirection from third party site http://localhost:4200/account/congratulations%3FdocumentId%3Dnnn but i need to decode as http://localhost:4200/account/congratulations?documentId=nnn for rendering my page '%3F' = '?' '%3D' =…
nkota
  • 555
  • 1
  • 6
  • 15
2
votes
1 answer

Decoding strings in c#

I have an app that works with some texts and I need to decode strings like: example\x27s string example\u0027s string For the first one I tried using Uri.UnescapeDataString(string.Replace("\\x", "%")) which works but not always because if the…
slemdx
  • 1,055
  • 2
  • 16
  • 19