N
N
Nikita Ivanov2015-11-27 18:03:03
PHP
Nikita Ivanov, 2015-11-27 18:03:03

How to decode a string like %xyz using JS or?

There is a URL like vladivostok/auto/sell_spare_parts/+/%E4%E5%F2%E0%EB%E8+%EA%F3%E7%EE%E2%E0/. How to make them readable? There are a lot of these lines, it was necessary to pull them out of the page using a PHP script and display them in a separate list.
The list is displayed, but you need to make it readable with PHP or JavaScript.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
link_irk, 2015-11-27
@link_irk

PHP: urldecode()

A
Alexander Melnichenko, 2015-11-27
@alex87melnichenko

JS:decodeURIComponent()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question