Home » XML » XML_Tree » Bug #5643
encodeXmlEntities destroys data encoded in utf-8
Details
| Submitted | 2005-10-10 12:02 UTC |
|---|---|
| From | o dot persson at gmail dot com |
| Status | Suspended |
| Package | XML_Tree |
| PHP Version | 5.1.0 |
| OS | Debian GNU/Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-10-10 12:02 UTC] o dot persson at gmail dot com
Description:
------------
I have data encoded in utf-8. If I try to output the data, encodeXmlEntities will replace "foreign characters" with &#NNN;-codes.
If the data is encoded in utf-8, it won't work since preg_replace doesn't support utf-8 (I believe) -- and the output will be corrupt.
It would be nice to be able to turn this feature off somehow until PHP get real utf-8 support. Maybe an option would be to use mb_ereg?