Welcome Guest, Not a member yet? Register   Sign In
Why ci url does not support Chinese
#10

[eluser]yinzhili[/eluser]
So far as I know, you can't use Chinese characters in any URLs.Such as:
Code:
http://example.com/login/username/张三
It won't work. You can use:
Code:
http://example.com/login/username/<?php echo urlencode('张三');?>
And in login.php you could use this to get the value of the parament:
Code:
<?php
$username=$this->uri->segment(3);
$username=urldecode($username);
?>
Try this.


Messages In This Thread
Why ci url does not support Chinese - by El Forum - 06-25-2009, 03:19 AM
Why ci url does not support Chinese - by El Forum - 06-25-2009, 04:35 AM
Why ci url does not support Chinese - by El Forum - 06-25-2009, 06:18 PM
Why ci url does not support Chinese - by El Forum - 06-25-2009, 06:28 PM
Why ci url does not support Chinese - by El Forum - 06-25-2009, 06:38 PM
Why ci url does not support Chinese - by El Forum - 06-25-2009, 07:20 PM
Why ci url does not support Chinese - by El Forum - 06-25-2009, 07:23 PM
Why ci url does not support Chinese - by El Forum - 06-25-2009, 07:26 PM
Why ci url does not support Chinese - by El Forum - 06-25-2009, 07:32 PM
Why ci url does not support Chinese - by El Forum - 06-29-2009, 03:26 AM
Why ci url does not support Chinese - by El Forum - 06-29-2009, 03:31 AM
Why ci url does not support Chinese - by El Forum - 07-02-2009, 02:16 AM
Why ci url does not support Chinese - by El Forum - 04-01-2010, 01:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB