2 |
use strict; |
use strict; |
3 |
|
|
4 |
use vars qw($VERSION); |
use vars qw($VERSION); |
5 |
$VERSION = do { my @r = (q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; |
$VERSION = do {my @r =(q$Revision$ =~ /\d+/g);sprintf "%d."."%02d" x $#r, @r}; |
6 |
|
|
7 |
use Encode (); |
use Encode (); |
8 |
require Encode::CN; |
require Encode::CN; |
71 |
package Encode::HZ::HZ8; |
package Encode::HZ::HZ8; |
72 |
|
|
73 |
use base qw(Encode::HZ); |
use base qw(Encode::HZ); |
74 |
__PACKAGE__->Define(qw/hz8/); |
__PACKAGE__->Define(qw/hz8 x-hz8/); |
75 |
|
|
76 |
sub encode ($$;$) { |
sub encode ($$;$) { |
77 |
my ($obj,$str,$chk) = @_; |
my ($obj,$str,$chk) = @_; |
104 |
HZ (HZ-GB-2312 in IANA name), but other variants such as |
HZ (HZ-GB-2312 in IANA name), but other variants such as |
105 |
HZ8 can't be encoded/decode. |
HZ8 can't be encoded/decode. |
106 |
|
|
107 |
|
=head1 TODO |
108 |
|
|
109 |
|
Support of extended HZ such as EHZ. |
110 |
|
|
111 |
=head1 ACKNOWLEDGEMENTS |
=head1 ACKNOWLEDGEMENTS |
112 |
|
|
113 |
Most part of this module is taken from Encode::CN::HZ. |
Most part of this module is taken from Encode::CN::HZ. |