A few weeks ago I wrote about how to replace special characters in Propels sluggable behaviour if iconv does not work. Now I want to publish the classes I have written for this.

Usage is like this:

echo Skoch_Translit::trans('Schüler'); // Schueler
echo Skoch_Translit::trans('ありがとう'); // arigatou
echo Skoch_Translit::trans('ljubičast'); // ljubicast

// or with object to configure

$adapters = array(
    new Skoch_Translit_Latin(),
$translit = new Skoch_Translit($adapters);
echo $translit->translit('Schüler'); // Schueler
echo $translit->translit('ありがとう'); // ありがとう
I do not maintain a comments section. If you have any questions or comments regarding my posts, please do not hesitate to send me an e-mail to stefan@eliteinformatiker.de.