CodeIgniter Forums
UTF-8 chars in URL! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: UTF-8 chars in URL! (/showthread.php?tid=27919)



UTF-8 chars in URL! - El Forum - 02-24-2010

[eluser]NikosV[/eluser]
ok. this probably has been answered to many times until now, but i am still missing something. I am new into codeigniter so be gentle with my ignorance ;-)

ok, i have developed a project using codeigniter. my language is greek. The problem started when i wanted to change the URLs from mysite.gr/index.php/contact to the seo-friendlier mysite.gr/index.php/(greek word for contact). How can i do that? Does CI supports non-english controller names or non-english function names? is there another way to do that?

Sorry again,
thanks in advance :-)


UTF-8 chars in URL! - El Forum - 02-24-2010

[eluser]Phil Sturgeon[/eluser]
This is of course difficult as the URL segments map to PHP classes and functions, which are restricted to a-z & underscores.

You can enable UTF-8 characters by entering them into the allowed_chars_list in config.php then set up routes for your Greek URL segments, or by patching the router to convert UTF-8 characters to their nearest a-z characters perhaps?

Either way, no easy task.