url title - 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: url title (/showthread.php?tid=2531) |
url title - El Forum - 08-10-2007 [eluser]wemago[/eluser] is there any function / helper that makes a string like this safe for url? $string = 'André Começa Agrão'; if i save it using url_title() it will kill the letters e,c and a...i'll get something like this 'andr comea agro'. my question is if exists a function to convert those letters to normal letters, safe for url title. thanx url title - El Forum - 08-10-2007 [eluser]Derek Jones[/eluser] Your best bet would be to create a transliteration table for accented characters, e.g. 'ö' to 'oe', as only low ascii characters meet the RFC guidelines for use in URLs, even though many browsers have some support for them. The support is inconsistent, however, and until the spec is created and applied universally, it's best to stick to unaccented a-z. |