XPressME Integration Kit

Trac

Changeset 486 for trunk


Ignore:
Timestamp:
Dec 11, 2009, 4:34:56 PM (15 years ago)
Author:
toemon
Message:

PHP4 のEUCでモジュール外に配置したブロック文字化けバグ修正 Fixes#268

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/xpress_block_render.php

    r483 r486  
    2929                        $ret = @xpress_XML_unserialize($xml_data); 
    3030                        if (strstr($xml_data, '<?xml version="1.0" encoding="EUC-JP" ?>') !== false){ 
    31                                 $ans = mb_convert_variables('EUC-JP' , 'UTF-8', &$ret); 
     31                                if (version_compare(PHP_VERSION, '5.0.0', '>')) { 
     32                                        $ans = mb_convert_variables('EUC-JP' , 'UTF-8', &$ret); //xpress_XML_unserialize() Return UTF-8 at PHP5 
     33                                } 
    3234                        } 
    3335                        return $ret; 
Note: See TracChangeset for help on using the changeset viewer.