Welcome Guest, Not a member yet? Register   Sign In
Problem with unicode in url
#1

[eluser]Unknown[/eluser]
Hi. I think it's something new Cuz I didn't see any topic like this or maybe I couldn't. I wanna ask if I pass Unicode strings to the controller's function parameter, how can I turn it back to the right encoding. Now I have url like this:

Code:
localhost/df-gamez/news/افتتاح-سایت-جدید-تیم-دریم-فکتوری

It's in Persian which is under UTF-8 encoding. When It passes to the function index I just get ASCII characters. So what's with that?

I tried to use mb_encode and something like that but It's still in the same characters.

Thanks. Peace Out!




Theme © iAndrew 2016 - Forum software by © MyBB