Convert::Cyr, chcp - Perl module for change cyrillic code page of a text.
use Convert::Cyr qw(chcp); $converted_string=chcp($string, $maxlen, $from, $to);
Convert::Cyr, chcp - change cyrillic code page of a text.
chcp takes as the first argument a string that is to be converted. It returns the converted string. Second argument is the lenght of the string. Third is source codepage. Forth is target codepage.
Original description from PHP function:
convert_cyr_string (string str, string from, string to) "This function returns the given string converted from one Cyrillic character set to another. The from and to arguments are single characters that represent the source and target Cyrillic character sets."
The supported types are: k - koi8-r w - windows-1251 i - iso8859-5 a - x-cp866 d - x-cp866 m - x-mac-cyrillic
chcp($string, $maxlen, $from, $to);
Konstantin Doulepov <kdoulepov@eur.ko.com>. With code integrated that was in built-in PHP function of ...
perl.
To install Convert::Cyr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convert::Cyr
CPAN shell
perl -MCPAN -e shell install Convert::Cyr
For more information on module installation, please visit the detailed CPAN module installation guide.