dervan |
|
---|---|
# Koradhil : The best thing to use would be the php command:and good practice would be to use "transliteration" feature which is supported in Cotonti, like this: if ($lang != 'en' && is_array($sed_translit)) { $output = strtr($input, $sed_translit); // transliterate non-English characters } $output = preg_replace("/[^A-Za-z0-9]/", "", $output); transliteration works when transition tables ($sed_translit, $sed_translitb) are defined in main.lang.php, see system/lang/ru/main.lang.php for example of these tables |