McA has asked for the wisdom of the Perl Monks concerning the following question:
I searched here and on the web for hours now, found many snippets, but not the solution to my problem. Hopefully you can give me wisdom.
If I push a so called encoding layer to a file handle with
binmode $fh, ":encoding(cp1252)";
knowing that the source character set (in this case utf-8) is a superset of the target character set, do I have a chance to instruct the encoding layer to ignore encoding problems by writing a substitution charater (like '?') to the output stream?
Thank you in advance.
Best regards
Andreas
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: binmode, encoding layer, ignoring encoding problems
by ikegami (Patriarch) on May 17, 2010 at 14:27 UTC | |
by McA (Priest) on May 17, 2010 at 15:19 UTC | |
by ikegami (Patriarch) on May 21, 2010 at 05:21 UTC | |
|
Re: binmode, encoding layer, ignoring encoding problems
by choroba (Cardinal) on May 17, 2010 at 13:58 UTC | |
by McA (Priest) on May 17, 2010 at 14:27 UTC |