Re: Continuing Perl 5.8.0 Problems
by Robin Berjon other posts by this author
Oct 2 2002 1:36PM messages near this date
view in the new Beta List Site
Re: Continuing Perl 5.8.0 Problems
|
Re: Continuing Perl 5.8.0 Problems
Steve Hay wrote:
> Continuing my investigations into the problems that I've previously
> reported concerning XML::Parser/XML::DOM under Perl 5.8.0, I've now
> produced a very short Perl script that uses neitehr module but
> reproduces the error reported by XML::DOM's XmlUtf8Decode() function.
>
> So to reproduce the XML::DOM module's problem we must set the UTF-8 flag
> on our $str as well. Inserting the following two lines:
>
> require Encode;
> Encode::_utf8_on($str);
Just a stab in the dark: does it make a difference if instead of
_utf8_on() you use one of the more "official" Encode functions?
_utf8_on() is documented, but it is also flagged as "internal" so maybe
one of the other functions does something different that's needed?
> exactly like the errors reported by XML::DOM's test suite.
Unrelated question: do you need to use XML::DOM? Last time I checked it
was only DOM Level 1 compatible, and that's almost deprecated. Would a
pure Perl W3C DOM L2 implementation interest anyone? I have one which I
never released because I thought I'd be the only one to use it, but if
there's interest I can put it on CPAN.
--
Robin Berjon <robin.berjon@[...].fr>
Research Engineer, Expway
7FC0 6F5F D864 EFB8 08CE 8E74 58E6 D5DB 4889 2488
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Steve Hay
Steve Hay
Robin Berjon
Steve Hay
Petr Pajas
Robin Berjon
Steve Hay
Petr Pajas
|