Changeset 364 for trunk/xpressme_integration_kit
- Timestamp:
- Aug 20, 2009, 12:54:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/xpress_block_render.php
r232 r364 15 15 $xml = xpress_XML_serialize($block); 16 16 $xml_name = $block_name . '.xml'; 17 if (WPLANG == 'ja_EUC'){ 18 $xml = str_replace('<?xml version="1.0" ?>', '<?xml version="1.0" encoding="EUC-JP" ?>' , $xml); 19 } 17 20 xpress_cache_write($mydirname,$xml_name,$xml); 18 21 } … … 21 24 $xml_name = $block_name . '.xml'; 22 25 $xml_data = xpress_cache_read($mydirname,$xml_name); 23 return @xpress_XML_unserialize($xml_data); 26 27 $ret = @xpress_XML_unserialize($xml_data); 28 if (strstr($xml_data, '<?xml version="1.0" encoding="EUC-JP" ?>') !== false){ 29 $ans = mb_convert_variables('EUC-JP' , 'UTF-8', &$ret); 30 } 31 return $ret; 24 32 } 25 33
Note: See TracChangeset
for help on using the changeset viewer.