2012-12-23, 21:13:21
It seems GS has trouble creating slugs if your server does not have the multibyte extension (mb_* functions) and you use non US-ASCII latin characters (á, è, ...) in your page titles.
Suggested patch:
Edit /admin/inc/basic.php, find this (around line 62):
Just after that, in line 66, insert this:
...just before this:
Now you should be able to use a title like Déjàvu, and the page slug will be deja-vu (and saved as deja-vu.xml, not as d%C3%A9j%C3%A0-vu.xml).
(Ref: http://stackoverflow.com/questions/11974...es-charset )
Thoughts?
Suggested patch:
Edit /admin/inc/basic.php, find this (around line 62):
PHP Code:
function to7bit($text,$from_enc="UTF-8") {
if (function_exists('mb_convert_encoding')) {
$text = mb_convert_encoding($text,'HTML-ENTITIES',$from_enc);
}
Just after that, in line 66, insert this:
PHP Code:
else
$text = htmlspecialchars_decode(utf8_decode(htmlentities($text, ENT_COMPAT, 'utf-8', false)));
...just before this:
PHP Code:
$text = preg_replace(
Now you should be able to use a title like Déjàvu, and the page slug will be deja-vu (and saved as deja-vu.xml, not as d%C3%A9j%C3%A0-vu.xml).
(Ref: http://stackoverflow.com/questions/11974...es-charset )
Thoughts?