I have another question, how do I find a way to encode the following characters - "34ТФ" (yes, it is Russian) in this code - 34%D2%D4
The problem is that if you use a regular "encodeURI", then you should get it - 34%D0%A2%D0%A4
P.S. I need it to produce the correct URL to a page on another site
34%D0%A2%D0%A4
? It correctly decodes to34ТФ
whiledecodeURIComponent('34%D2%D4')
throws this error:URIError: URI malformed
– Stephan Bönnemann Dec 3 '12 at 14:21