I have a bunch of characters which are encoded in the form %XX%XX. How can I display the actual characters with Javascript?
Examples of the characters are...
wha开发者_StackOverflowt I have / what I want
%C5%93 / œ
%C3%A6 / æ
%C3%9F / ß
Thanks for the help!
Use the built in decodeURI
or decodeURIComponent
functions.
return decodeURIComponent("%C5%93%C3%A6%C3%9F"); // "œæß"
精彩评论