1

我正在尝试创建一个包含非英文字符的路线。我正在使用类似的东西:

$route[rawurlencode('stringWithNonEnglishCharacters')] = "controller/method";

在我的本地服务器上这工作得很好,但是当我将它上传到服务器时,由于某种原因它只适用于英文字符。知道我做错了什么或需要配置什么吗?

4

1 回答 1

2

I used ASCII instead.

Sample

$route['%E0%B8%9A%E0%B8%97%E0%B8%84C'] = 'controller/method';

You will see the URL in ASCII format when copying URL and paste it into the text editor.

Or

$route[urlencode('Your languages String')] = "controller/method";
于 2013-05-05T14:47:28.380 回答