#24934 [Opn->Fbk]: create_text_node() does not handle special characters
| From: | rrichards@php.net | Date: | Fri, 08 Aug 2003 22:45:52 +0000 |
| Subject: | #24934 [Opn->Fbk]: create_text_node() does not handle special characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-45606@lists.php.net to get a copy of this message | ||
ID: 24934
Updated by: rrichards@php.net
Reported By: tony at marston-home dot demon dot co dot uk
-Status: Open
+Status: Feedback
Bug Type: DOM XML related
Operating System: Windows XP
PHP Version: 4.3.2
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
can you provide a small script as I cant reproduce the corruption you
are getting
Previous Comments:
------------------------------------------------------------------------
[2003-08-04 08:47:14] tony at marston-home dot demon dot co dot uk
Description:
------------
I have a field with the value "Cote d'Ivoire" (where the letter 'o' is
actually 'o circumflex') which is not being deal with correctly by
$doc->create_text_node().
If I pass the text through htmlentities() beforehand what appears in
the XML output is "Côte d'Ivoire" instead of "Côte
d'Ivoire".
If I do not use htmlentities() on the value the output is
"C�'Ivoire" (which is totally corrupt) instead of "Côte
d'Ivoire" (which is what I expect).
A similar fault exists with all the other special charcters I have
tried, such as 'c cedila' etc.
Expected result:
----------------
If my input is "Co(circumflex)te d'Ivoire" I expect the output to be
"Côte d'Ivoire"
Actual result:
--------------
Instead of "Côte d'Ivoire" I am getting
"C�'Ivoire"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24934&edit=1