Hi Krileon,
Can you help me a litle more on this issue.
In this code:
private static function getTitleAlias( $title )
{
$alias = str_replace( '-', ' ', $title );
$alias = trim( cbIsoUtf_strtolower( $alias ) );
$alias = preg_replace( '/(\s|[^A-Za-z0-9\-])+/', '-', $alias );
$alias = trim( $alias, '-' );
return $alias;
}
When I delete this line:
$alias = preg_replace( '/(\s|[^A-Za-z0-9\-])+/', '-', $alias );
The alias become better. It still unicode but, spaces are replaced with "%20".
Like this:
Title: Những động vật quý hiếm ở xứ sở các vị thần
Alias: 145-những%20động%20vật%20quý%20hiếm%20ở%20xứ%20sở%20các%20vị%20thần-3
Can you tell me how to replace "%20" with a dash "-" ? Or there is any other way to create the alias?
Thank you very much and looking forwards to hering from you.
Hai Dinh