#29711 [NEW]: libxml and non iso-8859-1
| From: | momo@php.net | Date: | Mon, 16 Aug 2004 18:32:50 +0000 |
| Subject: | #29711 [NEW]: libxml and non iso-8859-1 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-64723@lists.php.net to get a copy of this message | ||
From: momo@php.net
Operating system: ALL
PHP version: 5.0.1
PHP Bug Type: XML related
Bug description: libxml and non iso-8859-1
Description:
------------
here fuul details:
http://www.phpil.net/php5xml.php
Reproduce code:
---------------
<?
error_reporting(E_ALL);
$xml = '<?xml version="1.0"
encoding="WINDOWS-1255"?><x>àáâã</x>';
$p = xml_parser_create();
xml_parser_set_option($p, XML_OPTION_CASE_FOLDING, 0);
xml_set_element_handler($p, 'start_elem', 'end_elem');
xml_set_character_data_handler($p, 'cdata');
xml_parse($p,$xml, true);
xml_parser_free($p);
function start_elem($parser, $tagname, $attributes){}
function end_elem($parser, $tagname){}
function cdata($parser,$data) {
echo $data;
}
?>
Expected result:
----------------
àáâã
Actual result:
--------------
????
--
Edit bug report at http://bugs.php.net/?id=29711&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29711&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29711&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29711&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29711&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29711&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29711&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29711&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29711&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29711&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29711&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29711&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29711&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29711&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29711&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29711&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29711&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29711&r=float