merhaba arkadaslar, php'de atıyorum başlık "şampiyon" olsun, bunu url'de site.com/ampiyon olarak atıyor. Yani türkçe karakterleri çevirmiyor. Bunu nasıl halledebilirim?

Kodlar:

call_user_func(function() use($templateFile, $v) {
// $e -> cleanup output, optionally preserving URIs as anchors:
$e = function($_, $allowLinks = false) {
$escaped = htmlspecialchars($_, ENT_QUOTES, 'UTF-8');

// convert URIs to clickable anchor elements:
if($allowLinks) {
$escaped = preg_replace('@([A-z]+?://([-\w\.]+[-\w])+(:\d+)?(/([\w/_\.#-]*(\?\S+)?[^\.\s])?)?)@',
"$1", $escaped
);
}

return $escaped;
};

// $slug -> sluggify string (i.e: Hello world! -> hello-world)
$slug = function($_) {
$_ = str_replace(" ", "-", $_);
$_ = preg_replace('/[^\w\d\-\_]/i', '', $_);
return strtolower($_);
};