Mantis

Unescape code breaking Japanese localizations

Posted by nurikabe 
Unescape code breaking Japanese localizations
October 08, 2007 08:40PM
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.
Re: Unescape code breaking Japanese localizations
October 08, 2007 09:52PM
Hi,

Yes you can remove (or best comment) it.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Sorry, only registered users may post in this forum.

Click here to login



Online Users

Guests: 13
Record Number of Users: 1 on April 02, 2023
Record Number of Guests: 115 on November 09, 2023
Top Users
Hébergeur : Morinie.Fr