Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: utf8 characters in Data::Dumper

by soonix (Canon)
on Jan 24, 2020 at 11:18 UTC ( #11111818=note: print w/replies, xml ) Need Help??

in reply to Re: utf8 characters in Data::Dumper
in thread utf8 characters in Data::Dumper

(here I tried to paste the actual hiragana letter あ but it did not work out well inside the code markup.)
You could use charnames, like this:
print Dumper encode 'utf8', "Hiragana Letter \N{HIRAGANA LETTER A}";
This works with PerlMonks, and if you use a web interface to your version control system, it will look nicer there than the "¿" or whatever gets displayed there.

If your Perl is older than v5.16, it needs an explicit use charnames; to work

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2020-06-02 09:29 GMT
Find Nodes?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?

    Results (16 votes). Check out past polls.