How to make the Cyrillic readable in the HTTP_REFERER?

0 like 0 dislike
173 views
I have a PHP-handler for sending applications in the mail, it is the element .@$_SERVER['HTTP_REFERER']. to specify the link from which the client came.

Part of this link is in Cyrillic (dynamic utm-tags). In this mail link comes the following: test.ru/?utm_source=%D0%A2%D0%95%D0%A1%D0%A2

Is it possible to do to get the email link displayed in Cyrillic or "on the fly" converted into transliteration?
by | 173 views

2 Answers

0 like 0 dislike
$str = 'test.ru/?utm_source=%D0%A2%D0%95%D0%A1%D0%A2'; print urldecode($str);

test.ru/?utm_source=ТЕСТ
by
0 like 0 dislike
instead of putting in the body of the email text link, put its html incarnation
the text that will be visible in the letter, underlined as a link
in the text you can write anything you want, lisch headers and head match the encoding
by

Related questions

110,608 questions
257,187 answers
0 comments
40,796 users