Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: I love XML::Twig

by mirod (Canon)
on Oct 06, 2006 at 17:47 UTC ( #576727=note: print w/replies, xml ) Need Help??


in reply to Re^3: I love XML::Twig
in thread I love XML::Twig

Do you have a test case? I tried a couple of tests and could not reproduce the problem:

perl -MXML::Twig -l -MEncode -e'print Encode::is_utf8( XML::Twig->npar +se( "<d>foo</d>")->root->text)' perl -MXML::Twig -l -MEncode -e'print Encode::is_utf8( XML::Twig->npar +se( qq{<?xml version="1.0" encoding="ISO-8859-1"?><d>foo</d>})->root- +>text)'

Both give me a result of 1

Replies are listed 'Best First'.
Re^5: I love XML::Twig
by Joost (Canon) on Oct 06, 2006 at 19:55 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://576727]
help
Chatterbox?
[Discipulus]: shmem the first time I was in germany I was so smart to learn by heart the address of the hostel: Einbahnstraße..
[Discipulus]: james28909 you are welcome
james28909 doesnt drink much alcohol
james28909 does enjoy blazing up though
james28909 also walks around hunting for his cell phone while using its flashlight function

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2018-05-20 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?