Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: utf8 characters in Data::Dumper

by leszekdubiel (Beadle)
on Jan 24, 2020 at 09:11 UTC ( #11111813=note: print w/replies, xml ) Need Help??


in reply to utf8 characters in Data::Dumper

Popular question, no good solutions found... My simple is:

print Dumper(%mydata) =~ s/\\x\{([0-9a-f]{2,})\}/chr hex $1/ger;

Replies are listed 'Best First'.
Re^2: utf8 characters in Data::Dumper
by haukex (Chancellor) on Jan 24, 2020 at 09:21 UTC
Re^2: utf8 characters in Data::Dumper
by ikegami (Pope) on Jan 25, 2020 at 10:24 UTC

    That's buggy. Consider the situation where someone has the string \x{0A}, such as the content of this post.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2020-04-05 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (33 votes). Check out past polls.

    Notices?