// 字符串规范化示例
$transliterator = Transliterator::createFromRules(''
. ':: [^йЙ];'
. ':: NFD;'
. ' [:White_Space:]+ > \' \';'
. ':: Upper();'
. ':: [:Nonspacing Mark:] Remove;'
. ':: NFC;', Transliterator::FORWARD);
$str = 'ручей příklad';
echo str_replace('й', 'Й', $transliterator->transliterate($str));
// 结果
// РУЧЕЙ PRIKLAD