views:

48

answers:

2

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...
what I have / what I want 
%C5%93 / œ
%C3%A6 / æ
%C3%9F / ß

Thanks for the help!

+1  A: 
return decodeURIComponent("%C5%93%C3%A6%C3%9F"); // "œæß"
KennyTM
A: 

Use the built in decodeURI or decodeURIComponent functions.

Oded