Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: utf8 characters in Data::Dumper

by soonix (Abbot)
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2020-03-28 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    To "Disagree to disagree" means to:









    Results (167 votes). Check out past polls.

    Notices?