#35031 [NEW]: tag contents are handled the wrong way they do contain:öäü

From: Date: Mon, 31 Oct 2005 09:24:40 +0000
Subject: #35031 [NEW]: tag contents are handled the wrong way they do contain:öäü
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87247@lists.php.net to get a copy of this message
From: robert dot bouwens at swissmains dot com Operating system: windows xc sp2 PHP version: 5.0.5 PHP Bug Type: *XML functions Bug description: tag contents are handled the wrong way they do contain:öäü Description: ------------ <NAME>Höchstgeschwindigkeit</NAME> The upper tag will not be corectly handled when using the xml_set_character_data_handler. The document is correctly formatted using utf-8 coding standards. The elementhandler for the upper tag will be called twice: 1st: "H" 2nd: "öchstgeschwindigkeit" which is a pain when creating html tables. Reproduce code: --------------- xml_set_character_data_handler( $parser, "daten" ); function daten( $parser, $xml_data ) { // Datenbereich ausgeben if ( $this->valid_list_item == true ) { $sdata = utf8_decode( $xml_data ); $this->data[$this->cv][] = utf8_decode( $sdata ); print ( $sdata ); print ( "|" ); } } Expected result: ---------------- The tag character handler does not recognize extended cahractersets. The tag character handler for the tag "NAME" should only be called once. -- Edit bug report at http://bugs.php.net/?id=35031&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35031&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35031&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35031&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35031&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35031&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35031&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35031&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35031&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35031&r=support Expected behavior: http://bugs.php.net/fix.php?id=35031&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35031&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35031&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35031&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35031&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35031&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35031&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35031&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35031&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35031&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35031&r=mysqlcfg

« previous php.bugs (#87247) next »