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encoding e$B$G$"$j!$e(B
e$BDL>o$O$=$Ne(B encoding e$B$r;H$C$F$$$k$H$$$&$h$&$K?dB,$9$k$N$Oe(B
e$B$5$[$I$$+$7$J;v$H$O;W$($^$;$s!%e(B
Ruby e$B$Ne(B default_external e$B$,L$Dj5A$N>uBV$K$"$k>l9g$K$N$_e(B
(e$B<1JL$G$-$k$J$i!VL$Dj5A!W$NJ8;zNs$KBP$7$F$N$_e(B)
Tk e$B$N%G%U%)%k%H$r;2>H$7$h$&$H$$$&$3$H$G$9$N$G!$e(B
e$BLdBj$O$J$$$H9M$($^$9!%e(B
- e$B:G6a$Oe(B locale e$B$K4X$o$i$:FbIte(B Unicode e$B$J$N$G$Oe(B
- locale_charmap e$B$,$H$l$J$$>l9g$Oe(B US-ASCII e$B$K$J$C$?e(B
[ruby-dev:33078]
- ASCII-8BIT e$B$,JV$C$F$/$k>l9g$O!"e(BRuby e$B$NCN$i$J$$e(B encoding
e$B$N$_e(B
- Tcl/Tk e$B$,CN$C$F$$$Fe(B Ruby e$B$,CN$i$J$$$N$Oe(B KOI8-U e$B$N$_e(B
KOI8-Ue$B$Oe(BKOI8e$B$He(BKOI8-Re$B$I$A$i$Ne(Breplicae$B$K$9$l$P$o$+$i$J$+$C$?$N$GJ]N1$7$F$$e(B
e$B$^$7$?$,!"e(BWikipediae$B$K$I$C$A$H$b0c$&$H:$C$F$$$?$N$GE,Ev$K$$$8$C$F$=$N$&e(B
e$B$ABP1~$5$;$^$9!#e(B
e$B$J$<e(B binary e$B$G$"$k$3$H$r<($9e(B identity e$B$,30$5$l$F$$$k$N$G$7$g$&$+!)e(B
generic/tclEncoding.c e$B$Ge(B initial encoding e$B$NI.F,$GDj5A$5$l$F$$$^$9!%e(B
default_external e$B$NJ8L.$G$9$+$i!"J8;zNs$KBP$9$ke(B encoding
e$B$N$3$H$G$7$g$&!#e(B
e$BFq$7$$5_:Q$KD)@o$9$k$h$j$O!"Dj5A$7$A$c$C$?$[$&$,!“e(Btk e$B0J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