"be consistent" | |
PerlMonks |
Re: Default encoding rules leave me puzzled...by Anonymous Monk |
on Jun 20, 2014 at 11:05 UTC ( [id://1090606]=note: print w/replies, xml ) | Need Help?? |
It appears, when Perl prints to binary STDOUT, it tries to encode some strings as Latin-1 char 241 is not valid utf-8. Interestingly enough... perl -wE 'use utf8; say q(Русский)' | perl -lnwE 'print join q(:), unpack q(C*), $_' - Wide character in say at -e line 1. 208:160:209:131:209:129:209:129:208:186:208:184:208:185 ... which is valid utf-8... and a warning.Well... what do you expect? Even this site mangles utf-8 characters in 'code' tags, if it cannot decode them as Latin-1. I think perlmonks is written in Perl ;) Yes, that's all pretty mysterious and confusing.
In Section
Seekers of Perl Wisdom
|
|