@@ 2586-2593 (lines=8) @@ | ||
2583 | // we use the broadest one, ie. utf8 |
|
2584 | // This allows to send data which is native in various charset, |
|
2585 | // by extending xmlrpc_encode_entitites() and setting xmlrpc_internalencoding |
|
2586 | if (!in_array($GLOBALS['xmlrpc_internalencoding'], array('UTF-8', 'ISO-8859-1', 'US-ASCII'))) |
|
2587 | { |
|
2588 | xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, 'UTF-8'); |
|
2589 | } |
|
2590 | else |
|
2591 | { |
|
2592 | xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, $GLOBALS['xmlrpc_internalencoding']); |
|
2593 | } |
|
2594 | ||
2595 | if ($return_type == 'phpvals') |
|
2596 | { |
|
@@ 3540-3547 (lines=8) @@ | ||
3537 | xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, true); |
|
3538 | // What if internal encoding is not in one of the 3 allowed? |
|
3539 | // we use the broadest one, ie. utf8! |
|
3540 | if (!in_array($GLOBALS['xmlrpc_internalencoding'], array('UTF-8', 'ISO-8859-1', 'US-ASCII'))) |
|
3541 | { |
|
3542 | xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, 'UTF-8'); |
|
3543 | } |
|
3544 | else |
|
3545 | { |
|
3546 | xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, $GLOBALS['xmlrpc_internalencoding']); |
|
3547 | } |
|
3548 | xml_set_element_handler($parser, 'xmlrpc_se_any', 'xmlrpc_ee'); |
|
3549 | xml_set_character_data_handler($parser, 'xmlrpc_cd'); |
|
3550 | xml_set_default_handler($parser, 'xmlrpc_dh'); |
@@ 966-973 (lines=8) @@ | ||
963 | // we use the broadest one, ie. utf8 |
|
964 | // This allows to send data which is native in various charset, |
|
965 | // by extending xmlrpc_encode_entitites() and setting xmlrpc_internalencoding |
|
966 | if (!in_array($GLOBALS['xmlrpc_internalencoding'], array('UTF-8', 'ISO-8859-1', 'US-ASCII'))) |
|
967 | { |
|
968 | xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, 'UTF-8'); |
|
969 | } |
|
970 | else |
|
971 | { |
|
972 | xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, $GLOBALS['xmlrpc_internalencoding']); |
|
973 | } |
|
974 | ||
975 | if ($this->functions_parameters_type != 'xmlrpcvals') |
|
976 | xml_set_element_handler($parser, 'xmlrpc_se', 'xmlrpc_ee_fast'); |