Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: XML:: DOM and Accented Characters

by almut (Canon)
on Aug 06, 2010 at 10:27 UTC ( [id://853371]=note: print w/replies, xml ) Need Help??

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;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://853371]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 22:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found