Forum Moderators: coopster
I do this for a script that takes user input and creates directories. Like Jatar says, use strtr, but you don't have to use an array, just
$cat_dir = strtr($cat_dir,
"ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïðòóôõöøùúûüýÿÑñ",
"AAAAAACEEEEIIIIOOOOOOUUUUYaaaaaaceeeeiiiiooooooouuuuyyNn");
This should pretty much take any alpha in the ISO-8859-1 and translate it to ASCII (you have to take further steps or add more for non-alpha, of course)
Tom
if you want to do german users/visitors a favour replace the german two-dot-characters (ä, ü, ö, Ä, Ü, Ö) with the character without the dots plus an 'e'.
Ä = Ae
Ö = Oe
Ü = Ue
ä = ae
ö = oe
ü = ue
The meaning and the pronunciation is known and especialy in e-mail communicationen these characters are often used here.
Greetings NN