When the encoding is specified, toString generates invalid XML without any error. In real life, this gets sent to a different XML processor that chokes on it. My question is why the behaviour is different, and whether there is something that should prevent me from submitting a bug report.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re^2: Vertical Tab (\x0b) in XML::LibXML
Replies are listed 'Best First'.
my $doc = 'XML::LibXML::Document'->createDocument('1.0', 'utf-8');
$doc->setDocumentElement(my $root = $doc->createElement('root'));