Welcome Guest, Not a member yet? Register   Sign In
url title
#1

[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 Smile
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB