Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

miyagawa (1653)

miyagawa
  (email not shown publicly)
http://bulknews.vox.com/
AOL IM: bulknews (Add Buddy, Send Message)

Journal of miyagawa (1653)

Saturday September 15, 2007
11:56 PM

XML::Atom 0.27

[ #34462 ]

XML::LibXML since 1.63 always returns utf-8 octet when you call $doc->as_xml, which seems to be the correct fix.

- $doc->toString always returns octets
- $doc->actualEncoding returns UTF8 if no document encoding is declared
          (unlike $doc->getEncoding, which returns undef)

XML::Atom had a broken test that relies on as_xml always returning UTF-8 flagged string, which makes tests fail. I didn't notice that until recently because my laptop had LibXML 1.62 and hence couldn't reproduce the bug.

Anyway XML::Atom 0.27 now has a proper handling to return UTF-8 octets when you call $feed->as_xml_utf8, and will be available on CPAN shortly.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.