fix for chines chars

There are many (I belive around 5%) Chinese character coded in GB2312
contains \xad, remove all \xad make the characters broken. Image you see
one broken ideograph in every sentence:(
This commit is contained in:
Lars Kneschke 2004-06-07 02:07:04 +00:00
parent 8ac1f330aa
commit a40c1f9e83

View File

@ -174,7 +174,8 @@
{
$string = preg_replace('/\0+/', '', $string);
$string = preg_replace('/(\\\\0)+/', '', $string);
$string = preg_replace('/\xad+/', '', $string); # deals with Opera "feature"
# commented out, because it breaks chinese chars
#$string = preg_replace('/\xad+/', '', $string); # deals with Opera "feature"
return $string;
} # function _no_null