in reply to Default encoding rules leave me puzzled...
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(Français)' | perl -lnwE 'print join q(:), un +pack q(C*), $_' - 70:114:97:110:231:97:105:115
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