in reply to binmode, encoding layer, ignoring encoding problems
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!)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: binmode, encoding layer, ignoring encoding problems
by McA (Priest) on May 17, 2010 at 15:19 UTC | |
by ikegami (Patriarch) on May 21, 2010 at 05:21 UTC |