mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
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:
parent
8ac1f330aa
commit
a40c1f9e83
@ -174,7 +174,8 @@
|
|||||||
{
|
{
|
||||||
$string = preg_replace('/\0+/', '', $string);
|
$string = preg_replace('/\0+/', '', $string);
|
||||||
$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;
|
return $string;
|
||||||
} # function _no_null
|
} # function _no_null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user