What would be the best way to convert slugs for non western languages normally I do this…
public function getSlug($title){
$clean = iconv('UTF-8', 'ASCII//TRANSLIT', $title);
$clean = preg_replace("/[^a-zA-Z0-9\\/_| -]/", '', $clean);
$clean = strtolower(trim($clean));
$clean = preg_replace("/[\\/_| -]+/", $this->replace_space, $clean);
return $clean;
}
But when put some asian characters in there, it will be empty… is there anyway to make this smarter so it will leave asian characters intact?