Help for this page

Select Code to Download


  1. or download this
    ...
    open my $fh, ">:utf8", "accentTestOutPut.xml" or die $!;
    ...
    $doc->printToFileHandle($fh);
    # or
    $doc->print($fh);
    
  2. or download this
    $ hexdump -C accentTestOutPut.xml 
    00000000  3c 3f 78 6d 6c 20 76 65  72 73 69 6f 6e 3d 22 31  |<?xml ver
    +sion="1|
    ...
    00000020  46 2d 38 22 3f 3e 0a 3c  54 45 53 54 3e 20 c3 a9  |F-8"?>.<T
    +EST> ..|
    00000030  20 3c 2f 54 45 53 54 3e  0a                       | </TEST>.
    +|
                                                         ^^^^^
    
  3. or download this
    sub printToFile
    {
    ...
        $self->print ($fh);
        $fh->close;
    }