#44700 [Opn->Bgs]: foreign characters creates linesplit in xml_set_character_data_handler
| From: | chregu@php.net | Date: | Fri, 11 Apr 2008 18:42:24 +0000 |
| Subject: | #44700 [Opn->Bgs]: foreign characters creates linesplit in xml_set_character_data_handler | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124156@lists.php.net to get a copy of this message | ||
ID: 44700
Updated by: chregu@php.net
Reported By: tr-huso at online dot no
-Status: Open
+Status: Bogus
Bug Type: *XML functions
Operating System: Linux Ubuntu 7.10
PHP Version: 5.2.5
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
From http://ch2.php.net/manual/en/function.xml-set-character-data-
handler.php :
"Character data handler is called for every piece of a text in the XML
document. It can be called multiple times inside each fragment (e.g.
for
non-ASCII strings)."
Previous Comments:
------------------------------------------------------------------------
[2008-04-11 14:23:59] tr-huso at online dot no
Description:
------------
XML-files containing foreign keys like æ, ø and å makes the
xml_set_character_data_handler splits the line in two.
PHP is standard set up in Ubuntu version 7.10.
This is sort of the same bug as #30951, but this case is closed.
Reproduce code:
---------------
I based my code on Example 2. Map XML to HTML to parse information from
the XML-file.
Just create a document with the foreign keys æ. ø and å and you should
pretty much be able to recreate the bug.
Instead of using echo insert the value in the code into a string or end
all echos with a <br>
Expected result:
----------------
I expected that the line that included the foreign character was
returned in whole, not splitted with a line feed.
Actual result:
--------------
it returns a line feed.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44700&edit=1