fonksiyon içerisindeki substr yerine mb_substr fonksiyonunu kullanın. Ayrıntı için http://tiny.cc/86j4k adresindeki makaleyi inceleyin.