#33074 [NEW]: XML retrieve function - especial character error

From: Date: Fri, 20 May 2005 02:13:46 +0000
Subject: #33074 [NEW]: XML retrieve function - especial character error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79232@lists.php.net to get a copy of this message
From: servisoft_mail at yahoo dot com Operating system: RedHat Enterprise Linux 3.0 PHP version: 5.0.4 PHP Bug Type: *XML functions Bug description: XML retrieve function - especial character error Description: ------------ by Cristian / Leonardo We are using a XML function and there are a problem with special caracter in Portuguese Brazilian language. When i use the function: xml_set_character_data_handler($xml_parser, $cdata); the retrieved data is truncated, ex: normal(PHP/4.3.11) - "Sítio" (PHP/5.0.4) - "çtio" we did tried convert to UTF-8 and ISO formats, linux language and a lot of things but there is no way. the only problem fix was reinstaling PHP/4.3.11 Reproduce code: --------------- $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, $start, $end); xml_set_character_data_handler($xml_parser, $cdata); -- Edit bug report at http://bugs.php.net/?id=33074&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33074&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33074&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33074&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33074&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33074&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33074&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33074&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33074&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33074&r=support Expected behavior: http://bugs.php.net/fix.php?id=33074&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33074&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33074&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33074&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33074&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33074&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33074&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33074&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33074&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33074&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33074&r=mysqlcfg

« previous php.bugs (#79232) next »