PERLTW(1perl) Perl Programmers Reference Guide PERLTW(1perl)
NAME
perltw - >>>> Perl >>
DESCRIPTION
>>>> Perl >>>!
> 5.8.0 >>>, Perl >>>>>> Unicode (>>>)
>>, >>>>>>>>>>>>>>>>>>>; CJK
(>>>) >>>>>>>>. Unicode >>>>>>>,
>>>>>>>>>>>>: >>>>, >>>>,
>>>>>>>> (>>>, >>>>, >>>>,
>>>>, >>>, >>>>, >>).
>>>>>>>>>>>>>> (> PC >>>>).
Perl >>> Unicode >>>>. >>> Perl
>>>>>>>>> Unicode >>; Perl >>>>>>
(>>>>>>>>>) >>> Unicode >>>>.
>>>>>>>, >>>>> Unicode
>>>>>>>>>>>>, Perl >>> Encode
>>>>,
>>>>>>>>>>>>>>>>>>>.
Encode >>>>>>>>>>>>>>>>> ('big5'
>> 'big5-eten'):
big5-eten Big5 >> (>>>>>>>)
big5-hkscs Big5 + >>>>>, 2001 >>
cp950 >>> 950 (Big5 + >>>>>>>)
>>>>, > Big5 >>>>>>> Unicode,
>>>>>>>>:
perl -MEncode -pe '$_= encode( utf8 => decode( big5 => $_ ) )' \
< file.big5 > file.utf8
Perl >>>> "piconv", >>>>> Perl
>>>>>>>>>>>, >>>>:
piconv -f big5 -t utf8 < file.big5 > file.utf8
piconv -f utf8 -t big5 < file.utf8 > file.big5
>>>>>>>>>> utf8 >>>>>>>>> utf8
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
#!/usr/bin/env perl
use utf8;
print length(">>"); # 2 (>> 6)
print index(">>>>", ">>"); # 2 (> 0 >>> 2 >>>)
>>>>>>>
>>>>>>>>>>>, >>> CPAN
() >> Encode::HanExtra >>.
>>>>>>>>>>>:
cccii 1980 >>>>>>>>>>>>
euc-tw Unix >>>>>, >> CNS11643 >> 1-7
big5plus >>>>>>>>>>>>> Big5+
big5ext >>>>>>>>>>>>> Big5e
>>, Encode::HanConvert
>>>>>>>>>>>>>>>>:
big5-simp Big5 >>>>> Unicode >>>>>>
gbk-trad GBK >>>>> Unicode >>>>>>
>>> GBK > Big5 >>>>, >>>>>>>>> b2g.pl
> g2b.pl >>>>, >>>>>>>>>>>:
use Encode::HanConvert;
$euc_cn = big5_to_gb($big5); # > Big5 >> GBK
$big5 = gb_to_big5($euc_cn); # > GBK >> Big5
>>>>>>
>>> Perl >>>>>>>>>
(>>>>>>>>>), >>>>>>> Perl >>>,
>> Unicode >>>>>. >>, >>>>>>>>>:
>> Perl >>>>>
Perl >>>
> Perl >>>>>>>>>>>
Perl >>>>> (Comprehensive Perl Archive Network)
Perl >>>>>>
>> Perl >>>
>>>>>>>>> Perl >>
Perl >>>>>
>> Perl >>>>>
Perl.tw >>>>>
Unicode >>>>
Unicode >>>> (Unicode >>>>>>)
Unix/Linux >> UTF-8 > Unicode >>>
>>>>>
>>>>>>>
SEE ALSO
Encode, Encode::TW, perluniintro, perlunicode
AUTHORS
Jarkko Hietaniemi
Audrey Tang (>>)
perl v5.38.2 2024-02-11 PERLTW(1perl)