Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: convert encoding

by rumpumpel1 (Novice)
on Feb 23, 2017 at 10:09 UTC ( [id://1182620]=note: print w/replies, xml ) Need Help??


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 (Canon) 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?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-18 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found