Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: How to handle encoding for STDERR

by na (Novice)
on Feb 12, 2013 at 13:52 UTC ( #1018362=note: print w/ replies, xml ) Need Help??


in reply to Re: How to handle encoding for STDERR
in thread How to handle encoding for STDERR

Sorry for poor writing.

Because correct encoded string in my locale may looks like 'garbage' for most of you, I avoid to cut & paste exact script and output.

As you guess, "<UTF-8 string>" is a utf-8 encoded string in Japanese and output fine( because of combination of "use 'utf8'" and "binmode(STDERR , ':utf8')." It may depend OS and locale, but for "ja_JP.UTF-8" locate on Ubuntu case, Perl generate language specific error messages.

Half of may question was ans wed by Anonymous Monk.

I just want to know how to get error string in C-locale even if Perl-process start in non-C locale.


Comment on Re^2: How to handle encoding for STDERR

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2014-10-22 12:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (117 votes), past polls