M
M
Maria Popova2018-03-21 13:48:08
PHP
Maria Popova, 2018-03-21 13:48:08

How to get cyrillic from "%25BA%25D1%25" using php?

String returns

%25D0%25B8%25D1%258F-%25D0%25B4%25D0%25B8%25D0%25B7%25D0%25B5%25D0%25BB%25D1%258C%25D0%25BD%25D0%25B0%25D1

how to display this line normally using php or bitrix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bkosun, 2018-03-21
@masha_0212

Use the urldecode or rawurldecode function
The string $strmust be a valid URL encoded string.

D
Danil Isaev, 2018-03-22
@d4h1i15438

Well, if it's expanded

$res = '%25D0%25B8%25D1%258F-%25D0%25B4%25D0%25B8%25D0%25B7%25D0%25B5%25D0%25BB%25D1%258C%25D0%25BD%25D0%25B0%25D1';
$res = urldecode($res);
echo $res;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question