Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.2

Bug #2144 High-UTF entities in attributed decoded as ?
Submitted: 2004-08-17 07:08 UTC
From: spam at julik dot nl Assigned:
Status: Verified Package: XML_Beautifier
PHP Version: 4.3.3 OS: MacOS X 10.3
Roadmaps: (Not assigned)    
Subscription  


 [2004-08-17 07:08 UTC] spam at julik dot nl
Description: ------------ When converting XML in UTF-8 containing russian letters encoded as character references in attribute values converted attribute values contain only ????? Reproduce code: --------------- $_xml = '<' . '?xml version="1.0" encoding="UTF-8"?' . '>'; $_xml .= <<<EOF <bogustag attribute="Инновационный дайджест"> <content /> </bogustag> EOF; require_once 'pear/XML/Beautifier.php'; $bf = new XML_Beautifier; echo $bf->formatString( $_xml); Expected result: ---------------- <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <bogustag attribute="(russian letters here)"> <content /> </bogustag> see http://clients.julik.nl/cases/bea.xml Actual result: -------------- <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <bogustag attribute="????????????? ????????" feed_id="4"> <content /> </bogustag>

Comments

 [2006-04-01 17:26 UTC] schst (Stephan Schmidt)
I no longer maintain this package => status of this bug is open.
 [2006-10-01 19:46 UTC] arnaud (Arnaud Limbourg)
Until the package gets a new maintainer.
 [2008-09-22 20:02 UTC] ashnazg (Chuck Burgess)
This seems to be working ok, using v1.2.0 on PHP 5.2.4. I'll give it a shot with PHP 4.4.9 to see if it behaves any differently.
 [2008-09-22 20:25 UTC] ashnazg (Chuck Burgess)
I can indeed duplicate this on PHP 4.4.9.
 [2011-09-28 01:24 UTC] ashnazg (Chuck Burgess)
-Roadmap Versions: 1.2.1 +Roadmap Versions: