Re: Silence “Wide charact er” warning globally one time
[email protected] (Aristotle Pagaltzis) Tue, 3 Aug 2010 00:20:04 +0200
| Newsgroups | perl.unicode |
|---|---|
| Message-ID | <[email protected]> |
* Michael Ludwig <[email protected]> [2010-07-30 01:20]: > You need the equivalent of -CO in your script: > > binmode STDOUT, ':utf8'; Argh, no, unfortunately not. The `:utf8` layer is bad. It does the equivalent of `_utf8_on` on input and `_utf8_off` on output, without actually decoding or (worse) encoding anything. You want `:encoding(UTF-8)`. -- *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1} &Just->another->Perl->hack; #Aristotle Pagaltzis // <http://plasmasturm.org/>