/usr/share/doc/libxml-writer-perl/examples/writing-unicode.pl is in libxml-writer-perl 0.625-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/usr/bin/perl -w
# Generate UTF-8 output of a Unicode string
use strict;
use XML::Writer;
my $unicodeString = "\x{201C}This\x{201D} is a test - \$ \x{00A3} \x{20AC}";
my $w = XML::Writer->new(ENCODING => 'utf-8');
$w->xmlDecl();
$w->startTag('doc');
$w->characters($unicodeString);
$w->endTag('doc');
$w->end();
|