Hello:
I don't know if a problem just like this has been reported before. Tried searching the forums for "UTF8" and came across a few posts with similar problems but nothing exactly to what I am experiencing.
a) Description of the problem
Foreign characters in the url get replaced by incorrect ones this way:
"Introducción" => "introduccia-n"
"Múltiples" => "ma-ltiples"
"Características" => "caractera-sticas"
b) Technical details about my forum
- Spanish language
- Database collation: utf8_general_ci
- Tables collation: utf8_general_ci
- Mysql version: 5.0.45
- PHP version: 5.1.6
- Option "Replace Non-English Characters in URLs" is enabled.
I tried using (without any change in behaviour) the following line:
It seems that for whatever reason, the text vbseo is seeing is the UTF-8 version while it is expecting ISO8859-1PHP Code:define('VBSEO_UTF8_SUPPORT', 0);
I added the following line to functions_vbseo_url.php after line 385 and it seems to be doing the trick:
After that modification, these are the results:PHP Code:if( mb_detect_encoding($text,"UTF-8, ISO-8859-1, GBK")=="UTF-8" )
{
$text = utf8_decode($text);
}
"Introducción" => "introduccion"
"Múltiples" => "multiples"
"Características" => "caracteristicas"
If there is a different approach to fix this problem please let me know. Also, if this not a bug, please move this thread to the appropriate forum.


LinkBack URL
About LinkBacks





Reply With Quote