use strict; use warnings; use PerlIO::encoding; { local $PerlIO::encoding::fallback = Encode::PERLQQ(); binmode STDOUT, ":encoding(cp1252)"; } print("\xc9\x{2660}\n");
It doesn't seem to work properly if you pass a custom handler. (There is repetition in the output!)
In reply to Re: binmode, encoding layer, ignoring encoding problems
by ikegami
in thread binmode, encoding layer, ignoring encoding problems
by McA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |