PerlIO::via::PrepareCP1251 - prepare unicode stream to be encoded as cp1251
version 0.02
require PerlIO::via::PrepareCP1251; # note the filter order open my $fh, '>:encoding(cp1251):via(PrepareCP1251)', $filename; print {$fh} $unicode_string; close $fh;
Behaviour for incompatible chars:
pass - put original symbol default_char - put $DEFAULT_CHAR skip - don't put anything charname - put \N{charname}
Constructor
Require utf8 stream
Filter text
liosha <liosha@cpan.org>
This software is copyright (c) 2015 by liosha.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install PerlIO::via::PrepareCP1251, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PerlIO::via::PrepareCP1251
CPAN shell
perl -MCPAN -e shell install PerlIO::via::PrepareCP1251
For more information on module installation, please visit the detailed CPAN module installation guide.