On Sun, Mar 2, 2008 at 11:50 PM, Glenn Maynard <[EMAIL PROTECTED]> wrote:


>  getAttribute() is still  entities incorrectly, which is where I had
>  problems.  In UTF-8, even with use utf8, this prints the raw byte 0xE4:
>
>  #!/usr/bin/perl;
>  use strict;
>  use warnings;
>  use utf8;
>  use XML::DOM;
>
>  my $parser = new XML::DOM::Parser;
>  my $doc = $parser->parse('<?xml version="1.0" encoding="UTF-8"?><blah 
> x="test: &#228;"/>');
>  print $doc->getDocumentElement->getAttribute("x");

I'm not following the bug, but want to tell you that even if you "use
utf8" the default encoding for STDOUT and STDIN is latin1, so it's
normal that you're seeing the raw 0xE4.

My 2¢.

-- 
Martín Ferrari


Reply via email to