in reply to Re: convert encoding
in thread convert encoding

your code (on Windows) produces instead of the 'ü' a strange looking character which I can not show here.

The encoding seems to have changed, but not in the intended way.

Replies are listed 'Best First'.
Re^3: convert encoding
by soonix (Chancellor) on Feb 24, 2017 at 14:13 UTC
    This specific problem can be addressed by
    binmode STDOUT, ':encoding(cp437)';
    (The number is referring to the code page, and has to be adjusted according to your configuration. The DOS command chcp can tell you which code page is in use in your CLI)
Re^3: convert encoding
by haukex (Archbishop) on Feb 23, 2017 at 10:22 UTC

    I admit I did only test my code on Linux (where it produces the "ü").

    However, given your post here, I am wondering whether Data::Dumper is the best choice. If you could explain what you are trying to accomplish in that code, that would help us help you. See also How do I post a question effectively?