Encode::HanConvert::Perl - Perl-based Encode::HanConvert
use Encode::HanConvert; # autoloads Encode::HanConvert::Perl # Conversion between Chinese encodings $euc_cn = big5_to_gb($big5); # Big5 to GBK $big5 = gb_to_big5($euc_cn); # GBK to Big5 # Conversion between Perl's Unicode strings - v5.6.0+ only $simp = trad_to_simp($trad); # Traditional to Simplified $trad = simp_to_trad($simp); # Simplified to Traditional # All functions may be used in void context to transform $_[0] big5_to_gb($string); # transform $string from big5 to gb
This Perl-based module provides part of the functionality of Encode::HanConvert, namely the big5_to_gb and gb_to_big5 functions.
big5_to_gb
gb_to_big5
The implementation is straightforward, and is significantly slower than the XS-based Encode::HanConvert; all Unicode-related functions are disabled for pre-5.6.0 perls as well.
This module should only be used in perl 5.7.2 or below.
Encode::HanConvert
The b2g.pl and g2b.pl utilities installed with this module.
Audrey Tang <cpan@audreyt.org>
Copyright 2002-2009 by Audrey Tang <cpan@audreyt.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Encode::HanConvert, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Encode::HanConvert
CPAN shell
perl -MCPAN -e shell install Encode::HanConvert
For more information on module installation, please visit the detailed CPAN module installation guide.