Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Encoding horridness

by jfrm (Monk)
on Jul 12, 2017 at 13:01 UTC ( [id://1194918]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $cureq .= '<?xml version="1.0" encoding="latin1"?>'."\n";
    $cureq .= # lots of other xml stuff
    open (XML, ">$xmlfile") or return("Could not open $xmlfile");
    print $cureq;
    close XML or return("Could not close $xmlfile");
    
  2. or download this
    $cureq .= '<?xml version="1.0" encoding="UTF-8"?>'."\n";
    open (XML, '>:encoding(UTF-8)', $xmlfile) or return("Could not open $x
    +mlfile");
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-23 20:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found