Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-08-31 11:10 GMT
Find Nodes?
    Voting Booth?

    The best computer themed movie is:

    Results (294 votes), past polls