Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: convert encoding

by rumpumpel1 (Novice)
on Feb 23, 2017 at 10:20 UTC ( [id://1182621]=note: print w/replies, xml ) Need Help??


in reply to Re: convert encoding
in thread convert encoding

I'm using Data::Dumper because I have a complex XML structure which I need to have in a human readable format. Data::Dumper does a very nice job except for the encoding.

Replies are listed 'Best First'.
Re^3: convert encoding
by haukex (Archbishop) on Feb 23, 2017 at 10:31 UTC
    I'm using Data::Dumper because I have a complex XML structure which I need to have in a human readable format.

    Data::Dumper is really more of a debugging aid than a pretty-printer. You could try out some other modules, such as Data::Printer. See also Data::Dumper with unicode for a question quite similar to yours.

    use open qw/ :std :utf8 /; use Data::Printer; my $str = "Nach R\x{fc}cksprache mit"; p $str;

    Next time, please provide all the information that you have split into multiple posts in this thread into a single post. I know what I mean. Why don't you?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found