Reputation: 3612
For example I put domain.com/controller/木村文乃 on my URI.
CodeIgniter read it as %E6%9C%A8%E6%9D%91%E6%96%87%E4%B9%83 when I output the 木村文乃.
function($page)
{
echo $page;
}
it outputs as %E6%9C%A8%E6%9D%91%E6%96%87%E4%B9%83
This problem happens since I move server from centOS to debian.
What could be the problem?
I have checked php.ini settings, etc.
Upvotes: 1
Views: 1225
Reputation: 382881
That's because special characters are not allowed in URLs whether you use CodeIgniter or any other framework, it is standard.
The reason why you see these percent characters converted is because CI converts special characters using urlencode
so that browser can understand them and that works for you behind the scenes.
Upvotes: 1
Reputation: 48775
Here you have it, this should display propper name.
function($page) {
$page=urldecode($page);
echo $page;
}
Upvotes: 0