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?