| 2 |
/** |
/** |
| 3 |
* Install instructions |
* Install instructions |
| 4 |
* @package Mambo |
* @package Mambo |
|
* @copyright Refer to copyright.php |
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
|
| 5 |
* @author Mambo Foundation Inc see README.php |
* @author Mambo Foundation Inc see README.php |
| 6 |
|
* @copyright Mambo Foundation Inc. |
| 7 |
|
* See COPYRIGHT.php for copyright notices and details. |
| 8 |
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see |
| 9 |
|
* LICENSE.php |
| 10 |
|
* Mambo is free software; you can redistribute it and/or |
| 11 |
|
* modify it under the terms of the GNU General Public License |
| 12 |
|
* as published by the Free Software Foundation; version 2 of the |
| 13 |
|
* License. |
| 14 |
*/ |
*/ |
| 15 |
if (!defined('_VALID_MOS')) define( '_VALID_MOS', 1 ); |
if (!defined('_VALID_MOS')) define( '_VALID_MOS', 1 ); |
| 16 |
|
|
| 73 |
if (preg_match('/<?xml.*encoding=[\'"](.*?)[\'"].*?>/m', $source, $m)) { |
if (preg_match('/<?xml.*encoding=[\'"](.*?)[\'"].*?>/m', $source, $m)) { |
| 74 |
$encoding = strtoupper($m[1]); |
$encoding = strtoupper($m[1]); |
| 75 |
} |
} |
| 76 |
$parser = xml_parser_create("UTF-8"); |
$parser = xml_parser_create(); |
| 77 |
xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, "UTF-8"); |
xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, "UTF-8"); |
| 78 |
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); |
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); |
| 79 |
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); |
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); |