In article [email protected],
Hidetoshi NAGAI [email protected] writes:
e$B<+J,<+?H$G$b2?$,2?$@$+J,$+$i$J$/$J$C$F$-$?$N$G!$e(B
e$B<ALd$r0lC6@0M}$7$F$_$^$9!%e(B
e$B$=$&$$$&$H$-$O$d$O$j6qBNE*$JLdBj$KN)$A5"$k$N$,$$$$$s$8$c$J$$e(B
e$B$G$7$g$&$+!#LdBj$N6qBNNc$r<($7$F$_$k$N$O$I$&$G$7$g$&e(B?
e$B$^$::G=i$K!$e(B
- encoding e$B$,L$Dj5A$J$i$P!$%G%U%)%k%H$r;H$C$F5_:Q$7$F$"$2$?$$$He(B
e$B9M$($k$N$O!V0-!W$+!)e(B
e$B$+$J$j6Z$,0-$$$H;W$$$^$9!#e(B
e$B$3$3$G$$$&%G%U%)%k%H$H$$$&$N$OMW$9$k$Ke(B locale e$B$G;H$o$l$k%(%se(B
e$B%3!<%G%#%s%0$G$9$h$M!#$D$^$j!"%F%-%9%H$GCN$i$J$$L>A0$N%(%s%3!<e(B
e$B%G%#%s%0$@$C$?$i$=$l$Oe(B locale e$B$K=>$C$F$$$k$H$$$&?dB,$r9T$&$He(B
e$B$$$&$o$1$G$9!#e(B
e$B$3$l$O!“FCDj$Ne(B locale e$B$K=>$C$FF0$$$F$$$k%7%9%F%`$NFbIt$G@[email protected](B
e$B$5$l$?%G!<%?$G$”$l$P!"@5$7$$?dB,$H$J$j$^$9!#e(B
e$B$7$+$7!“$R$H$D$Ne(B locale e$B$G$9$Y$F$,=hM}$5$l$k!”$H$$$&$N$O88A[e(B
e$B$G$“$j!”$R$H$D$N%7%9%F%Fb$GJ#?t$Ne(B locale e$B$,F1;~$K07$o$l$k$He(B e$B$$$&$3$H$O$h$/$"$j$^$9$7!"$5$i$K$O!"30It$N%7%9%F%
$,F1$8e(B
locale e$B$G$"$k$H$O$^$C$?$/J]>Z$G$-$^$;$s!#e(B
e$B30It$N%7%9%F%`$H$NDL?.$GNI$/$"$k$N$Oe(B MIME
e$B$G$7$g$&!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kJ}?K$G$d$C$F$^$7$?!%e(B
e$B$7$+$7e(B Ruby 1.9 e$B$G$O!$5_:Q$r9M$($k$3$H<+BN$,!V0-!W$G$“$je(B
e$B!V>.$5$J?F@Z!$Bg$-$J$*@$OC!W$G$”$k$H$$$&$N$G$“$l$P!$e(B
e$B$I$&$7$h$&$b$”$j$^$;$s!%e(B
e$B303&$H$N>pJs$N$d$j$H$j$NBgItJ,$KJ8;z$N>pJs$,$D$$$F$$$k$h$&$Ke(B
e$B$J$i$J$$8B$j!“5_:Q<+BN$OI,MW$G$7$g$&!#$7$+$7!”$=$N5_:Q$OE,@Ze(B
e$B$J5_:Q$,$G$-$=$&$J$H$3$m$G9T$&$Y$-$G$9!#$=$7$F!“$=$l$,$G$-$=e(B
e$B$&$J$H$3$m$O!”%G!<%?$,FI$_9~$^$l$k$H$3$m$G$"$j!"e(Btk e$B$K%G!<%?e(B
e$B$rAw$j9~$`$H$3$m$O0c$&$N$G$O$J$$$+$H;W$$$^$9!#e(B
e$B$5$F!"e(Btcl 8.5.0 e$B$Ne(B library/encoding/
e$B$r$$$/$i$+D/$a$F$_$^$7e(B
e$B$?!#4V0c$C$F$$$?$i;XE&$7$F$/$@$5$$!#e(B
ASCII e$B8_49$GC10l%P%$%H$J%(%s%3!<%G%#%s%0$Oe(B ASCII-8BIT e$B$Ne(B
replica e$B$H$7$FDj5A$9$l$P$=$l$J$j$KF0$-$^$9!#e(B
e$B$3$NHOaF$K$“$k$N$Oe(B (Ruby e$B$de(B Oniguruma
e$B$KDj5A$,$”$k$b$N$b4^$ae(B
e$B$Fe(B) e$B0J2<$NDL$j$G$9!#e(B
ascii, cp437, cp737, cp775, cp850, cp852, cp855, cp857,
cp860, cp861, cp862, cp863, cp864, cp865, cp866, cp869,
cp874, cp1250, cp1251, cp1252, cp1253, cp1254, cp1255,
cp1256, cp1257, cp1258, gb1988, iso8859-1, iso8859-2,
iso8859-3, iso8859-4, iso8859-5, iso8859-6, iso8859-7,
iso8859-8, iso8859-9, iso8859-10, iso8859-13, iso8859-14,
iso8859-15, iso8859-16, jis0201, koi8-r, koi8-u,
macCentEuro, macCroatian, macCyrillic, macGreek, macIceland,
macJapan, macRoman, macRomania, macThai, macTurkish,
macUkraine, tis-620
ASCII e$B8_49$J%^%k%A%P%$%H%(%s%3!<%G%#%s%0$O0J2<$NDL$j$G$9!#e(B
e$B$3$NCf$G!"e(Bcp936 (GBK) e$B$He(B cp949 (EUC-KR e$B$Ne(B MS
e$B3HD%e(B) e$B$Oe(B
Oniguruma e$B$K$b$J$/$F!"Dj5A$,I,MW$=$&$G$9!#e(B
cp932, cp936, cp949, cp950, euc-cn, euc-jp, euc-kr, big5,
gb2312, shiftjis
e$B%^%k%A%P%$%H$JJ8;z%;%C%H$r$=$N$^$^07$&!"e(BASCII e$B8_49$G$J$$$N$Oe(B
e$B0J2<$NDL$j$G$9!#e(B
gb12345, gb2312-raw, jis0208, jis0212, ksc5601
ASCII e$B8_49$G$J$$C10l%P%$%H$J%(%s%3!<%G%#%s%0$O0J2<$NDL$j$G$9!#e(B
ebcdic, dingbats, macDingbats, symbol
stateful e$B$J%(%s%3!<%G%#%s%0$O0J2<$NDL$j$G$9!#e(B
iso2022-jp, iso2022-kr, iso2022
e$B$3$&$d$C$FJ,N`$7$F$_$k$H!"e(Blocale e$B$N%(%s%3!<%G%#%s%0$K$J$j$=e(B
e$B$&$J$N$Oe(B ASCII e$B8_49$J$b$N$He(B ebcdic e$B$@$1$K8+$($^$9!#e(B
e$B%^%k%A%P%$%H$JJ8;z%;%C%H$=$N$^$^$N$b$Ne(B (jis0208 e$B$H$+e(B)
e$B$Oe(B
portable character set e$B$,e(B 1e$B%P%$%H$GI=8=$G$-$J$$$H$$$1$J$$$He(B
e$B$$$&e(B POSIX e$B$N5,Ls$KH?$7$^$9!#e(B
dingbats e$B$J$I$N5-9fN`$Oe(B portable character set
e$B$rI=8=$G$-$:!"e(B
e$B$3$l$be(B POSIX e$B$KH?$7$^$9!#e(B
stateful e$B$J$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