remiah has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks.
When I print variables with Data::Dumper, it prints utf-8 characters with escaped sequence.
>perl -MData::Dumper -Mutf8 -e 'print Dumper "Hiragana Letter A .. for example ..."' $VAR1 = "\x{3042}";Is there a way to dump utf8 characters as is? I was thinking of this several times, and looked for option like $Data::Dumper::Encoding='UTF-8', but I could not find it so far.
So here I would like to ask monks for suggestions, wisdoms
regards.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: utf8 characters in Data::Dumper
by tobyink (Canon) on Nov 25, 2012 at 08:07 UTC | |
by remiah (Hermit) on Nov 25, 2012 at 09:14 UTC | |
Re: utf8 characters in Data::Dumper
by grondilu (Friar) on Nov 25, 2012 at 06:54 UTC | |
by tobyink (Canon) on Nov 25, 2012 at 08:14 UTC | |
by soonix (Canon) on Jan 24, 2020 at 11:18 UTC | |
by remiah (Hermit) on Nov 25, 2012 at 09:01 UTC | |
Re: utf8 characters in Data::Dumper
by Anonymous Monk on Nov 25, 2012 at 13:56 UTC | |
Re: utf8 characters in Data::Dumper
by leszekdubiel (Scribe) on Jan 24, 2020 at 09:11 UTC | |
by haukex (Archbishop) on Jan 24, 2020 at 09:21 UTC | |
by ikegami (Patriarch) on Jan 25, 2020 at 10:24 UTC |
Back to
Seekers of Perl Wisdom