Hi axkit users, Hi perl xml users, hi john, Sorry for cross posting this message, but John ran into a BUG (?) in PERL that effects the use of XML::LibXML.
The problem arises if a user uses the toString() function to get the XML for an in-memory document and prints this output to a file handle. The problem is only there if the document is marked as UTF8 encoded explicitly (either via XML::LibXML::Document->new(), $doc->setEncoding() or '<?xml version="1.0" encoding="utf8"?>'). I wrote a little unit test on that issue. With these tests I was able to confirm John's original problem. However, with a little effort I made all tests pass. These test cases confirm that XML::LibXML does absolutely the right thing (*phew*). The attached unit test explains the problem (in case you don't find your way around: start reading at line 127) and its solution. Cheers Christian. -- Christian Glahn <[EMAIL PROTECTED]>
ecnoding_output.pl
Description: Perl program
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
