Repeatedly asked question about url-encoding and permitted characters - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Repeatedly asked question about url-encoding and permitted characters (/showthread.php?tid=5978) |
Repeatedly asked question about url-encoding and permitted characters - El Forum - 02-10-2008 [eluser]girir[/eluser] I noticed that this question has been asked time and again and there doesn't seem to be a good answer to it. How does one allow a character like: é (which is basically the character é) or any other non-english url-encoded character in the URL? It doesn't seem practical to put all of them into the permitted_uri_chars list in config.php. Since codeigniter uses the decoded URL to check against the permitted chars list, just having '%' in permitted chars list doesn't work too. A solution that allows for some controllers to bypass the permitted_uri_chars check might work. Another solution would be to use php code outside of codeigniter and then redirect to CI - but that would involve a 301,302 HTTP redirect which I don't prefer. Please do tell if anyone has solved this issue within the scope of CI. Repeatedly asked question about url-encoding and permitted characters - El Forum - 02-11-2008 [eluser]Eric Barnes[/eluser] What I did was create a new url_helper and replaced the character é with e. Here is a link to the function: http://ellislab.com/forums/viewthread/71139/ |