v10.1
I found that accented characters were being corrupted on my hosting (linux, php 5.2) server and not on any test (windows PHP5.3) machines.
To fix this
in google_base.php in the infamous (to me anyway) google_base_sanita function
find
PHP Code:
if (phpversion() >= 5.3) {
$str = htmlentities($str, ENT_QUOTES | ENT_IGNORE, 'UTF-8');
} else {
$str = htmlentities($str);
}
return $str;
and change to
PHP Code:
if (phpversion() >= 5.3) {
$str = htmlentities($str, ENT_QUOTES | ENT_IGNORE, 'UTF-8');//ENT_IGNORE silently deletes an invalid character
} else {
$str = htmlentities($str, ENT_QUOTES, 'UTF-8');//Not having ENT_IGNORE returns an empty string if containing an invalid character
}
return $str;
Bookmarks