1If you read this file _as_is_, just ignore the funny characters you 2see. It is written in the POD format (see perlpod manpage) which is 3specially designed to be readable as is. 4 5The following documentation is written in Big5 encoding. 6 7�p�G�A�Τ@�몺��r�s�边�\���o�����, �Щ����夤�_�S�����O�r��. 8�o�����O�H POD (²�����榡) �g��; �o�خ榡�O���F�����H����Ū��, 9�ӯS�O�]�p��. ���榡���i�@�B��T, �аѦ� perlpod �u�W���. 10 11=head1 NAME 12 13perltw - ���餤�� Perl ���n 14 15=head1 DESCRIPTION 16 17�w��Ө� Perl ���Ѧa! 18 19�q 5.8.0 ���}�l, Perl ��ƤF������ Unicode (�U��X) �䴩, 20�]�s�a�䴩�F�\�h�ԤB�y�t�H�~���s�X�覡; CJK (������) �K�O�䤤���@����. 21Unicode �O��کʪ��з�, �չϲ[�\�@�ɤW�Ҧ����r��: ���@��, �F��@��, 22�H�Ψ�̶����@�� (��þ��, �ԧQ�Ȥ�, ���ԧB��, �ƧB�Ӥ�, �L�פ�, 23�L�a�w��, ����). ���]�e�ǤF�h�ا@�~�t�λP���O (�p PC �γ�����). 24 25Perl �����H Unicode �i��ާ@. �o��� Perl �������r���ƥi�� Unicode 26���; Perl ���禡�P��� (�Ҧp���W��ܦ����) �]��� Unicode �i��ާ@. 27�b��J�ο�X��, ���F�B�z�H Unicode ���e���s�X�覡�x�s�����, Perl 28���ѤF Encode �o�ӼҲ�, �i�H���A�����aŪ���μg�J�¦����s�X���. 29 30Encode �����Ҳդ䴩�U�C���餤�媺�s�X�覡 ('big5' ��� 'big5-eten'): 31 32 big5-eten Big5 �s�X (�t�ʤѩ����r��) 33 big5-hkscs Big5 + ����~�r��, 2001 �~�� 34 cp950 �r�X�� 950 (Big5 + �L�n�K�[���r��) 35 36�|�Ҩӻ�, �N Big5 �s�X���ɮ��ন Unicode, ������J�U�C���O: 37 38 perl -Mencoding=big5,STDOUT,utf8 -pe1 < file.big5 > file.utf8 39 40Perl �]�����F "piconv", �@�䧹���H Perl �g�����r���ഫ�u��{��, �Ϊk�p�U: 41 42 piconv -f big5 -t utf8 < file.big5 > file.utf8 43 piconv -f utf8 -t big5 < file.utf8 > file.big5 44 45�t�~, �Q�� encoding �Ҳ�, �A�i�H�����g�X�H�r�Ŭ���쪺�{���X, �p�U�ҥ�: 46 47 #!/usr/bin/env perl 48 # �Ұ� big5 �r��ѪR; �зǿ�X�J�μзǿ��~���]�� big5 �s�X 49 use encoding 'big5', STDIN => 'big5', STDOUT => 'big5'; 50 print length("�d�m"); # 2 (������ܦr��) 51 print length('�d�m'); # 4 (�����ܦ줸��) 52 print index("�ναл�", "να"); # -1 (���]�t���l�r��) 53 print index('�ναл�', 'να'); # 1 (�q�ĤG�Ӧ줸�ն}�l) 54 55�b�̫�@�C�Ҥl��, "��" ���ĤG�Ӧ줸�ջP "��" ���Ĥ@�Ӧ줸�յ��X�� Big5 56�X�� "ν"; "��" ���ĤG�Ӧ줸�իh�P "��" ���Ĥ@�Ӧ줸�յ��X�� "α". 57�o�ѨM�F�H�e Big5 �X���B�z�W�`�������D. 58 59=head2 �B�~������s�X 60 61�p�G�ݭn��h������s�X, �i�H�q CPAN (L<http://www.cpan.org/>) �U�� 62Encode::HanExtra �Ҳ�. ���ثe���ѤU�C�s�X�覡: 63 64 cccii 1980 �~��ط|�������T�洫�X 65 euc-tw Unix �����r�Ŷ�, �]�t CNS11643 ���� 1-7 66 big5plus ����Ʀ�ƧN���s����|�� Big5+ 67 big5ext ����Ʀ�ƧN���s����|�� Big5e 68 69�t�~, Encode::HanConvert �Ҳիh���ѤF²�c�ഫ�Ϊ���ؽs�X: 70 71 big5-simp Big5 ���餤��P Unicode ²�餤�夬�� 72 gbk-trad GBK ²�餤��P Unicode ���餤�夬�� 73 74�Y�Q�b GBK �P Big5 ��������, �аѦҸӼҲդ����� b2g.pl �P g2b.pl ���{��, 75�Φb�{�����ϥΤU�C�g�k: 76 77 use Encode::HanConvert; 78 $euc_cn = big5_to_gb($big5); # �q Big5 �ର GBK 79 $big5 = gb_to_big5($euc_cn); # �q GBK �ର Big5 80 81=head2 �i�@�B����T 82 83�аѦ� Perl �������j�q������� (�������O�έ^��g��), �ӾDzߧ�h���� 84Perl ������, �H�� Unicode ���ϥΤ覡. ���L, �~�����귽�۷��״I: 85 86=head2 ���� Perl �귽�����} 87 88=over 4 89 90=item L<http://www.perl.com/> 91 92Perl ������ (�Ѽڵ�§���q���@) 93 94=item L<http://www.cpan.org/> 95 96Perl ��X���ú� (Comprehensive Perl Archive Network) 97 98=item L<http://lists.perl.org/> 99 100Perl �l���¤@�� 101 102=back 103 104=head2 �Dz� Perl �����} 105 106=over 4 107 108=item L<http://www.oreilly.com.tw/chinese/perl/index.html> 109 110���餤�媩���ڵ�§ Perl ���� 111 112=item L<http://groups.google.com/groups?q=tw.bbs.comp.lang.perl> 113 114�O�W Perl �s�u�Q�װ� (�]�N�O�U�j BBS �� Perl �s�u��) 115 116=back 117 118=head2 Perl �ϥΪ̶��| 119 120=over 4 121 122=item L<http://www.pm.org/groups/asia.shtml#Taiwan> 123 124�O�W Perl ���s�դ@�� 125 126=item L<http://irc.elixus.org/> 127 128���ߨ�u�W��ѫ� 129 130=back 131 132=head2 Unicode �������} 133 134=over 4 135 136=item L<http://www.unicode.org/> 137 138Unicode �dzN�Ƿ| (Unicode �зǪ���w��) 139 140=item L<http://www.cl.cam.ac.uk/%7Emgk25/unicode.html> 141 142Unix/Linux �W�� UTF-8 �� Unicode ���Ȱ� 143 144=back 145 146=head2 ����Ƹ�T 147 148=over 4 149 150=item ������s "���餤��" ���s "�c�餤��"? 151 152L<http://www.csie.ntu.edu.tw/~b7506051/mozilla/faq.html#faqglossary> 153 154=item ����Ƴn���p�� 155 156L<http://www.cpatch.org/> 157 158=item Linux �n�餤��ƭp�� 159 160L<http://www.linux.org.tw/CLDP/> 161 162=back 163 164=head1 SEE ALSO 165 166L<Encode>, L<Encode::TW>, L<encoding>, L<perluniintro>, L<perlunicode> 167 168=head1 AUTHORS 169 170Jarkko Hietaniemi E<lt>jhi@iki.fiE<gt> 171 172Autrijus Tang (��v�~) E<lt>autrijus@autrijus.orgE<gt> 173 174=cut 175