Is there a standard way to handle diacritics in URLs for CI? |
[eluser]Matthew Pennell[/eluser]
Hello - I've not worked with CI for a couple of years so I may have missed a development in this area. Is there a standard way to handle creating url_title type strings from strings that contain diacritics? If I wanted to map Résumé to /about-me/resume/ - has anyone created a way to do it?
[eluser]jáquer[/eluser]
Maybe use something like this? Add this to an "unaccent" helper: Code: function unaccent($text) { And then: Code: $this->load->helper('url'); Code for the unaccent function found a hasty Google search, which lead me here. There might be better implementations of it.
[eluser]Matthew Pennell[/eluser]
Thanks, that looks like it might be useful. ![]() |
Welcome Guest, Not a member yet? Register Sign In |