[Mediawiki-l] StripforSearch in LanguageUtf-8 and LanguageZh*
kent sin
kentsin at gmail.com
Thu Jun 29 02:35:59 UTC 2006
I am trying to understand the language related coding for Chinese: I
have find that
the StripForSearch defined in utf8 and zh* were like this:
$out = preg_replace(
"/([\\xc0-\\xff][\\x80-\\xbf]*)/e",
"'U8' . bin2hex( strtr( \"\$1\", \$wikiSearchChars ) )",
$string );
My question is :
Why the strtr is place in here but not
$out = preg_replace(
"/([\\xc0-\\xff][\\x80-\\xbf]*)/e",
"'U8' . bin2hex( \"\$1\" )",
strtr( $string, $wikiSearchChars ) );
--
Sin Hang Kin.
More information about the MediaWiki-l
mailing list