Questions tagged [decodeuricomponent]

56 questions
1
vote
2 answers

ng-include not getting file name with utf-8 character

I have the ng-include below, the file name it's getting contains an ñ character so it's showing an not found error.
I also tried using decodeURI like the code below before passing it to the…
Len
  • 534
  • 1
  • 15
  • 31
1
vote
1 answer

decodedURIComponent in javascript (getCookie function)

This getCookie function code is from https://www.w3schools.com/js/js_cookies.asp function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i…
jwkoo
  • 2,393
  • 5
  • 22
  • 35
1
vote
0 answers

DecodedURL - pass values from html form to the string

I have a below encoded string that i have to pass as decodeduri in code... it woking fine.... now as a next step... I have pass the dynamic value from my html to dynamicvariable highlighted. please note...I am enocing and converting to decode is…
1
vote
2 answers

HTML does not show decoded %3C?

Following blocks of code are similar but have different input strings and hence different results: // This does not change HTML var str = "%3Cdiv%3E"; //
var str_dec = decodeURIComponent(str); console.log(str_dec); // Console output is…
Anas
  • 177
  • 1
  • 11
1
vote
0 answers

windows.location not working with UTF characters

I used ajax for the search function. However, it failed to search unicode characters. Here is the code causing a problem success: function(data){ var url = base_url + "/?s=ryhmät"; location.href=url; } The url passed correctly, but…
1
vote
0 answers

decodeURIComponent Issue with Javascript

I'm doing some work with a lovely bubble cloud example made by Jim Vallandingham and I've run into a bit of an issue. (The code was initially Coffeescript which I converted to Javascript; please let me know if there's any errors in the conversion!…
Tuna
  • 33
  • 5
1
vote
0 answers

Flex- handle error thrown by decodeURIComponent component for some utf-8 encoded strings

How to I handle the erros thrown by the decodeURIComponent. By handling I mean that when the decodeURIComponent throws some error I want that the characters which caused the issue to be stripped out or replaced by some default charcters. In my case…
Sarita
  • 837
  • 11
  • 19
1
vote
1 answer

PHP (PDO) urlencoded how to decode in javascript? decodeURI? or decodeURIcomponent?

I used the PHP's urlencode and INSERTED to the database using PDO bindParamiter.... I KNOW I SHOULD NOT CARE ABOUT urlencoding the DATA and that I SHOULD let PHP-PDO Sanitize but, some how I would like to urlencode first be fore…
Universal Grasp
  • 1,835
  • 3
  • 20
  • 29
1
vote
0 answers

decoding WINDOWS-1255 in a UTF-8 document

I have a content that is generated via javascript and deployed in an iframe. im giving this code to clients to generate the contet in their site (like a widget) problem i encounter is that all my documents are encoded with UTF-8 while some of my…
lior r
  • 2,220
  • 7
  • 43
  • 80
0
votes
0 answers

Unexpected decodeURI output

I send post request to my express server with body payload handle: "new-text-collection-tech-gen" raw: "Нова коллекція" title: "%D0%9D%D0%BE%D0%B2%D0%B0%20%D0%BA%D0%BE%D0%BB%D0%BB%D0%B5%D0%BA%D1%86%D1%96%D1%8F" But i receive unexpected encoding of…
0
votes
1 answer

Why is %fd an invalid string for url decoding?

Why is %e9 or %fd invalid string to decode using the decodeURIComponent from Javascript? These characters appear in the middle of a string and I can't understand where the problem is. They are valid hexadecimal characters. Full string (this is part…
user12950273
0
votes
2 answers

Is Node decodeURIComponent idempotent? If not, is there an idempotent alternative?

Is Node decodeURIComponent idempotent? Does... decodeURIComponent(x) === decodeURIComponent(decodeURIComponent(x)) for any and all x? If not, is there an alternative that is idempotent? Was trying to think through if this was possible myself.
lmonninger
  • 831
  • 3
  • 13
0
votes
0 answers

decodeURIComponent replacing + in token string by space string

I have my token as DQlaAxk+9mn438m64KNLbKXgIvJR3yZmtdTnz3/JlgJX6UVciW0Y88whF5dM+qPW which is passed in browser url. http://localhost:4200/#/feedback/resetPassword?itoken=DQlaAxk+9mn438m64KNLbKXgIvJR3yZmtdTnz3/JlgJX6UVciW0Y88whF5dM+qPW This url when…
Surendra Mourya
  • 593
  • 3
  • 8
  • 29
0
votes
0 answers

Get each element values separately from URL in jquery

I have decoded uri: min_price=0&max_price=628&category_id=71&page=1&path=71&old_route=product/category&review[]=3&attribute_value[20][]=new&attribute_value[1][]=Evaluate This URI can be each time different. Depend on checked component in a…
K. B.
  • 1,388
  • 2
  • 13
  • 25
0
votes
0 answers

mb_convert_encoding not working sometimes: Uncaught URIError: URI malformed

mb_convert_encoding() is not working for Cyrillic characters and other special characters if used with PHP and jQuery AJAX. The error is as follows: Uncaught URIError: URI malformed at decodeURIComponent () at Object. (popular:3725) …