Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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

share|improve this question
    
You must make yourself clear on the subject if you want to encode or you want to encrypt. –  Andries Dec 3 '12 at 14:15
    
@Andries I need out of it "34ТФ" - to get it "34%D2%D4". Sorry for my english, I'm just learning)) –  Ilya Kharlamov Dec 3 '12 at 14:19
    
Do you know what encoding the other site is using? –  Matt Dec 3 '12 at 14:21
4  
What is your problem with 34%D0%A2%D0%A4? It correctly decodes to 34ТФ while decodeURIComponent('34%D2%D4') throws this error: URIError: URI malformed –  Stephan Bönnemann Dec 3 '12 at 14:21
    
@Matt Unfortunately no. If anything, here's a site - link, can you tell me? –  Ilya Kharlamov Dec 3 '12 at 14:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.