I have some Japanese EUC-JP and Shift_JIS localizations in my plugin. However, this code in lang_inc.php:
if ( !eregi( 'utf-8', $s_charset ) ) {
$t_vars = get_defined_vars();
foreach ( array_keys( $t_vars ) as $t_var ) {
if ( ereg( '^s_plugins_', $t_var ) ) {
eval( '$' . $t_var . ' = utf8_decode( \'' . str_replace( "'", "\\'", $$t_var ) . '\' );' );
}
}
}
is trying to unescape localizations that, since they are saved in a file, would not be escaped anyway (at least for Japanese). Possible to remove this code?
Edited 1 time(s). Last edit at 10/08/2007 08:40PM by nurikabe.