M
M
ms23452015-10-11 21:16:45
JavaScript
ms2345, 2015-10-11 21:16:45

How to convert encoded url to normal russian characters?

Good afternoon, I ran into a problem.
There are automatically converted Russian characters in the url of this type: %D1%81%D0%BB%D0%BE%D0%B2%D0%BE - after conversion
Analogue in PHP: php.net/manual/ru/function.urldecode.php
Is there a function in javascript to decode such a string, or is there no ready solution?
I kindly ask you to help me to solve this problem.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivanq, 2015-10-11
@ms2345

decodeURIComponent

C
Curly Brace, 2015-10-11
@stasuss

www.w3schools.com/jsref/jsref_decodeuricomponent.asp

A
aol-nnov, 2015-10-11
@aol-nnov

have you tried using search?www.w3schools.com/jsref/jsref_decodeuri.asp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question