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XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
24
25 7bit-jis AdobeStandardEncoding AdobeSymbol AdobeZdingbat
26 ascii big5 big5-hkscs cp1006
27 cp1026 cp1047 cp1250 cp1251
28 cp1252 cp1253 cp1254 cp1255
29 cp1256 cp1257 cp1258 cp37
30 cp424 cp437 cp500 cp737
31 cp775 cp850 cp852 cp855
32 cp856 cp857 cp860 cp861
33 cp862 cp863 cp864 cp865
34 cp866 cp869 cp874 cp875
35 cp932 cp936 cp949 cp950
36 dingbats euc-cn euc-jp euc-kr
37 gb12345-raw gb2312-raw gsm0338 hp-roman8
38 hz iso-2022-jp iso-2022-jp-1 iso-8859-1
39 iso-8859-10 iso-8859-11 iso-8859-13 iso-8859-14
40 iso-8859-15 iso-8859-16 iso-8859-2 iso-8859-3
41 iso-8859-4 iso-8859-5 iso-8859-6 iso-8859-7
42 iso-8859-8 iso-8859-9 iso-ir-165 jis0201-raw
43 jis0208-raw jis0212-raw johab koi8-f
44 koi8-r koi8-u ksc5601-raw MacArabic
45 MacCentralEurRoman MacChineseSimp MacChineseTrad MacCroatian
46 MacCyrillic MacDingbats MacFarsi MacGreek
47 MacHebrew MacIcelandic MacJapanese MacKorean
48 MacRoman MacRomanian MacRumanian MacSami
49 MacSymbol MacThai MacTurkish MacUkrainian
50 nextstep posix-bc shiftjis symbol
51 UCS-2BE UCS-2LE UTF-16 UTF-16BE
52 UTF-16LE UTF-32 UTF-32BE UTF-32LE
53 utf8 viscii
54
55 (XXX114XXXX)
56
57 XXXXXXXXXXXXXXXXXXXXXXFOOXXXXXXXXXXXXXXUTF-8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
58
59 perl -Mencoding=FOO,STDOUT,utf8 -pe1 < file.FOO > file.utf8
60
61 XXXXXXXXPerlXXXXXXXXXXXXXXXPerlXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXpiconvXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
62
63 piconv -f FOO -t utf8 < file.FOO > file.utf8
64 piconv -f utf8 -t FOO < file.utf8 > file.FOO
65
66 About (jcode.pl|Jcode.pm|JPerl)
67 5.8XXXXXXXXXXXXXXXXXXXXXXXXEUC-JPXXXXXXXXXXXXXXXXXiXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXJcode.pmXXX(
68 http://openlab.ring.gr.jp/Jcode/
69 )XXXperl4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXjcode.plXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCGIXXXXXXXXXXn~XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
70
71 5.005XXXXXXXPerlXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXiXXXXXXXXXJperlXXXXXXXXXXXXXXXXXXX(
72 http://homepage2.nifty.com/kipp/perl/jperl/index.html )XXXXXXXXXXXMac
73 OS
74 9.x/ClassicXXXXXXPerlXXXMacPerlXXXXXXXXXXXXXXXMacJPerlXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(
75 http://habilis.net/macjperl/
76 ).XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXEUC-JPXXXXXXXXXShift_JISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
77
78 Perl5.8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXPerlXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX114XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCPANXXXXiXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
79
80 · XXXXXXX
81
82 XXXXXXXXXXXXXXXXXXXXXXShift_JISXXXXXXXXXXEUC-JPXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
83
84 # jcode.pl
85 require "jcode.pl";
86 while(<>){
87 jcode::convert(*_, 'euc', 'sjis');
88 print;
89 }
90 # Jcode.pm
91 use Jcode;
92 while(<>){
93 print Jcode->new($_, 'sjis')->euc;
94 }
95 # Perl 5.8
96 use Encode;
97 while(<>){
98 from_to($_, 'shiftjis', 'euc-jp');
99 print;
100 }
101 # Perl 5.8 - encoding XXXXXn~XXXXXXX
102 use encoding 'euc-jp', STDIN => 'shiftjis';
103 while(<>){
104 print;
105 }
106
107 · Jperl XXXXXXXXXXXXXXXXX
108
109 XXXXXXXXXXXX"shebang"XXXXXXXXXXXXXXXXXXXXXXXXJperlXXXXXXscriptXXXXXXXXXXXXiXXXXXXXXXXXXXXXXn~XXXXXXXXXXXXXXXXXXXXXXXXXXXX
110
111 #!/path/to/jperl
112 XXX
113 #!/path/to/perl -Mencoding=euc-jp
114
115 XXXXXXXXXX perldoc encoding XXXXXXXXXXXXXXXXXXXXXXXXXXXX
116
117 XXXXXXXXXXXXXXX
118 PerlXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXPerlXXXXXXXXXXXXUnicodeXXXXXXXXXXXXXXXXXXXXXXEncodeXXXXXXXXXXXXXXXXXXXXXXXiXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXoXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
119
120 perldoc perlunicode # PerlXXXUnicodeXXXXXXXXXXXXXX
121 perldoc Encode # EncodeXXXXXXXXXXXXXXXXXXX
122 perldoc Encode::JP # XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
123
124 PerlXXXXXXXXXXXXXX URL
125 <http://www.perl.com/>
126 Perl XXXXXXXXXXXXXXXX (O'Reilly and Associates)
127
128 <http://www.cpan.org/>
129 CPAN (Comprehensive Perl Archive Network)
130
131 <http://lists.perl.org/>
132 Perl XXXXXXXXXXXXXXXXXXXX
133
134 PerlXXXXXXXXXXXXXXXX URL
135 <http://www.oreilly.com.tw/>
136 O'Reilly XXXXPerlXXXXXXXXX(XXXXXXXXXXXX)
137
138 <http://www.oreilly.com.cn/>
139 O'Reilly XXXXPerlXXXXXXXXX(XXXXXXXXXXXX)
140
141 <http://www.oreilly.co.jp/catalog/>
142 XXXXiXXXXXXXXXXPerlXXXXXXXXX(XXXXXXX)
143
144 Perl XXXXXXXXXXXXXXXXX
145 <http://www.pm.org/groups/asia.html>
146
147 UnicodeXXXXXXXURL
148 <http://www.unicode.org/>
149 Unicode XXXXXXXXXXXXXXX (UnicodeXXXXXXXXXXXXXXXX)
150
151 <http://www.cl.cam.ac.uk/%7Emgk25/unicode.html>
152 UTF-8 and Unicode FAQ for Unix/Linux
153
154 http://wiki.kldp.org/Translations/html/UTF8-Unicode-KLDP/UTF8-Unicode-KLDP.html
155 <http://wiki.kldp.org/Translations/html/UTF8-Unicode-KLDP/UTF8-Unicode-
156 KLDP.html>
157 UTF-8 and Unicode FAQ for Unix/Linux (XXXXXXXXXXX)
158
160 Jarkko Hietaniemi <jhi@iki.fi> Dan Kogai (XXXXXXX) <dankogai@dan.co.jp>
161
162
163
164perl v5.16.3 2013-03-04 PERLJP(1)