N
N
NubasLol2018-10-01 11:37:57
Laravel
NubasLol, 2018-10-01 11:37:57

Laravel - how to get current url without escaping cyrillic characters?

I get the url through the url helper, but instead of Cyrillic characters, some kind of nonsense, how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antonio Solo, 2018-10-01
@NubasLol

the current URL always consists only of 7bit ASCII characters,
therefore, in order to give out a "beautiful URL in Russian", you need to recode it yourself, the domain according to one rule, the local part - according to others.
PHP has urldecode php.net/manual/en/function.urldecode.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question