【100分求助】xml_parse_into_struct 函数解析XML,中文乱码
测试代码如下:
<br />$xmldata = '<?xml version="1.0" encoding="UTF-8"?><description>中文</description>';<br />$parser = xml_parser_create ('UTF-8');<br />$vals = array();<br /><br />xml_parse_into_struct ($parser, $xmldata, $vals);<br />xml_parser_free ($parser);<br /><br />print_r($vals);<br />