Reputation: 7394
I have this code for opening file:
use Encode qw(:fallbacks);
$PerlIO::encoding::fallback = FB_PERLQQ;
open my $log,'>:encoding(cp-1251)','log.txt';
Some codes do not map to cp-1251 and I see warnings like '"\x{015f}" does not map to cp1251 at ...'. Is it possible to disable this warning for a specific filehandle? \x{015f} in output file is enough for me.
Upvotes: 0
Views: 239