vendredi 29 avril 2016

PHP - Getting numbers when reading korean characters

I have following url with some Korean characters at end of the url:

http://localhost/example/popular-tags/고양이

Now I am reading 고양이 from url like this which is used in Laravel5 for read data from url string:

$TagName = str_slug(Request::segment(2), "-");

but getting number eab3a0ec9691ec9db4 not 고양이 characters.

Any idea how to get Korean characters.

Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire