PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » XML » XML_Tree » Bug #5643

encodeXmlEntities destroys data encoded in utf-8

Details

Submitted2005-10-10 12:02 UTC
Fromo dot persson at gmail dot com
StatusSuspended
PackageXML_Tree
PHP Version5.1.0
OSDebian 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?