☺唐鳳☻ > Encode-HanConvert-0.31 > Encode::HanConvert::Perl

Download:
Encode-HanConvert-0.31.tar.gz

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source   Latest Release: Encode-HanConvert-0.35

NAME ^

Encode::HanConvert::Perl - Perl-based Encode::HanConvert

SYNOPSIS ^

    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

DESCRIPTION ^

This Perl-based module provides part of the functionality of Encode::HanConvert, namely the big5_to_gb and gb_to_big5 functions.

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.

SEE ALSO ^

Encode::HanConvert

The b2g.pl and g2b.pl utilities installed with this module.

AUTHORS ^

Autrijus Tang <autrijus@autrijus.org>

COPYRIGHT ^

Copyright 2002, 2003, 2004 by Autrijus Tang <autrijus@autrijus.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

syntax highlighting: