I'm using Code-igniter 3 and need to pass a parameter to a controller using URL parameters. My URL is something like this:
http://192.168.40.50/user/list/محمد
And I added this to the config file :
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-|آ-ی';
And my controller is like this:
public function list($name)
{
// The $name parameter is incorrect here
// In this case $name = 'E-E'
}
The problem is that I'm getting 'E-E' instead of 'محمد'.
I just search a lot of questions but didn't find a solution
َUPDATE
I'm using routing. The parameters are delivered correctly without routing but when I add routes UTF-8 characters are changed. My route is just like this:
$route['user/list/(:any)'] = 'user/list_of/$1';