Are non-english characters 100% supported in codeigniter urls by default?

给你一囗甜甜゛ 提交于 2019-12-04 17:16:38
j_mcnally

Non-ASCII character should be URLEncoded converting them to %F3 etc. Which I believe would be allowed based on the % and a-z 0-9

Abbas

Use it in this way, Change the Config File:

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-|آ-ی';

In This way it supports all charachters except "Hamze". And if you want to Support "Hamze" you can change it in this way :

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-|آ-یء';

I have just read your question and it has a simple answer that i have reached! The answer is :

$route[urlencode ('ورود-به-حساب-کاربری')] = 'Login';

You do not need to manipulate your config file as you told! So you only need to set this line of code into your route.php as well. It works for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!