Is it possible to make url_title()
produce rephrasing of this strings:
čolić
nešto
Into:
colic
nesto
I believe that this could be useful with Latin-base UTF8 languages and setting up more pretty and descriptive URLs for non-Latin languages.
Is it possible to make url_title()
produce rephrasing of this strings:
čolić
nešto
Into:
colic
nesto
I believe that this could be useful with Latin-base UTF8 languages and setting up more pretty and descriptive URLs for non-Latin languages.
Just tie into the convert_accented_characters function:
url_title(convert_accented_characters('čolić'));
I'm using
$this->load->helper('text');
$string = 'tèst Tést ççÇçandãÃ';
$title = url_title(convert_accented_characters(utf8_encode(strtolower($string)));
// return: test-test-cccandaa