Questions tagged [decodeuricomponent]

56 questions
0
votes
1 answer

Javascript - URL Decoding for an unstructured URL

I have a URL that looks something like this after decoding using…
A-D
  • 371
  • 1
  • 9
  • 24
0
votes
2 answers

decoding the html tag from response and showing it in view

My below given response comes as encoded format , i am decoding it using a filter and displaying value in my html . But I need to display them as html in my view. So trustAsHtml has been used. but the problem here is when I use trustAsHtml my…
Nicoleta Wilskon
  • 687
  • 1
  • 10
  • 32
0
votes
2 answers

DecodeURIComponent is not supporting for %uXXXX encoded component

DecodeURIComponent is not supporting for few encoded component I am sending JD with bulletin format in my json , in restapi . So I am encoding the jd and sending. this works properly without any issues.But when I am trying to decode the encoded JD ,…
0
votes
1 answer

Decode the encoded value directly in view/html

I am submitting a form for job posting and have skills like C# which escape in my rest API. So I encoded the skills and sending to backend. "skills":encodeURIComponent(skills) now when I get back the skills I am doing decodeURIComponent for my…
Nicoleta Wilskon
  • 687
  • 1
  • 10
  • 32
0
votes
0 answers

IE and Edge sending encoded URL to the server

I am trying to send some parameters from a booking form to an online booking company's website. The idea is to get a quick redirection for the visitor to the website with a date and a date plus one day (in JavaScript) for the booking as a starting…
Alperian
  • 119
  • 1
  • 2
  • 8
0
votes
1 answer

decodeURIComponent in form querystring

When i submit my form it will add hidden input as query string in browser url. $('form').on("submit", function(event) { event.preventDefault(); // what i tried console.log($(this).attr('action')); });
Padideh
  • 139
  • 2
  • 13
0
votes
1 answer

DecodeURIComponent not working for total string

This below snippet: decodeURIComponent("MAR%2520SE%255EStruc%2520Fin%255EAs-Bad%2520Secies%2BRECH%20LANE%5EEnish") Answer Given: "MAR%20SE%5EStruc%20Fin%5EAs-Bad%20Secies+RECH LANE^Enish" I need the entire thing to be decoded right from beginning to…
Charan
  • 35
  • 7
0
votes
3 answers

Decoding non English letters in URL (javascript)

I get in my html file parameter with some text containing non-english characters. Like that: http://www.example.com/player.html?name=%e4%e1%ef I need to decode this to name=הבן I tryed: unescape(url) - get wrong characters: name=äáï (maybe from…
Shmuel
  • 488
  • 1
  • 6
  • 18
0
votes
0 answers

DecodeURIComponent not decoding %26 to &

I am trying to encode an ampersand using EncodeURIComponent and replace it with %26. The issue I am having is when I go to decode it using DecodeURIComponent it is displaying an "and". Here is my code. Anyone have any ideas what i am doing…
0
votes
1 answer

Decoding the chinese characters in input text field

I want to decode the chinese characters into the input text field.But it is showing the field as it is. But it is showing the "漢 ;字 ;" instead of chinese characters Expected output :漢字 output :漢 ;字 ; it is working fine when i…
Ananth
  • 51
  • 1
  • 9
0
votes
2 answers

decodeURIComponent fails from URI provided from form submit to chrome.webRequest

i have the following situation. i do a GET request via an HTML form i have one text field and the field has the contents of << BLAH >alert (”BLAH”);//<. It's known invalid, hypothetical markup. i have an event listener on webRequest i…
cdaringe
  • 1,274
  • 2
  • 15
  • 33
0
votes
2 answers

JavaScript decodeURIComponent does not decode from variable

I have an Angular2/TypeScript app I'm working on. I'm using Implicit Auth with an OAuth 2.0 service for authentication. The browser redirects the user to the OAuth endpoint to log into their account, and is then redirected back to my app as per the…
Krummelz
  • 1,046
  • 1
  • 11
  • 23
0
votes
2 answers

JS decodeURIComponent returns empty string in Firefix (most recent)

Got the following code from StackOverflow. It's supposed to parse the variables in the URL, but when I debug the value of sURLVariables in the for loop its value is always empty. Any ideas why? var getUrlParameter = function getUrlParameter(sParam)…
Aaron Lowe
  • 33
  • 8
0
votes
2 answers

encode/decodeURI for URLs with quotes

I'm having trouble displaying links to URLs with quotes in them and can't figure out a solution despite a load of examples on stackoverflow! Here's the exact string I'm storing in my database (shows Adelaide…
d3wannabe
  • 1,207
  • 2
  • 19
  • 39
0
votes
1 answer

decodeURIComponent is both working and not working simultaneously?

I just can't understand it, but here is my situation. I have this peace of code: someFunction: function(content){ content = content.substr(19005,24); console.log('content is: '+content); content = decodeURIComponent(content); …
Oleksii Shnyra
  • 623
  • 1
  • 6
  • 24