I have one question. I am using slug url function for my SEO friendly url but my function not posted turkish character.
function url_slug($str)
{
$str = mb_strtolower( trim( $str ), 'UTF-8' );
$str = preg_replace('/[^a-zA-Z0-9]/i',' ', $str);
$str = trim($str);
$str = preg_replace('/\s+/', '-', $str);
return $str;
}
for example when i post this title: şekerli bir öğütücü çok ışıklı bir bahçe
Url shows me : ekerli-bir-t-c-ok-kl-bir-bah-e
What can i do here? Anyone can help me here ?