|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re^2: How to handle encoding for STDERRby na (Novice) |
| on Feb 12, 2013 at 13:52 UTC ( #1018362=note: print w/ replies, xml ) | Need Help?? |
|
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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||