In article [email protected],
“NARUSE, Yui” [email protected] writes:
e$B$3$l<+BN$OG<F@$G$-$k$N$G$9$,!"%^%C%A$5$;$F<N$F$k$@$1$J$N$Ke(Bdupe$B$9$k$N$,$Je(B
e$B$s$+L5BL$J5$$,$9$k$N$,0z$C3]$+$kE@$G$7$g$&$+!#e(BASCII-8BIT e$B$N@55,I=8=$re(B
e$B%^%C%A$5$;$k$N$O!“J8;zNs$r%P%$%J%j$H2r<a$7$F%^%C%A$9$k$H$$$&<q;]$G$”$k$He(B
e$B2r<a$7$F!"0EL[$Ke(Bdup.force_encoding(“ASCII-8BIT”) e$B$G$-$^$;$s$+$M!#e(B
e$B0EL[$Ke(B force_encoding e$B$H$$$&$N$O!"$J$s$Ge(B force_encoding
e$B$,$3e(B
e$B$s$J$KD9$/$FL@<(E*$J$N$+$H$$$&M}M3$KH?$7$^$9!#e(B
force_encoding e$B$OJ8;z$H$$$&Cj>]$rGK$k$b$N$G$9$+$i!"0EL[$K$Oe(B
e$B$d$i$J$$$[$&$,$$$$$G$7$g$&!#e(B
e$B$"$H$O!"e(Bdup
e$B$O%a%b%j$r6&M-$9$k$H;W$($P5$$K$J$i$J$/$J$j$^$;$s$+!#e(B
e$B!Ve(BMatchData#begin e$B$"$?$j$,Dj5A$G$-$J$$!W$H$$$&$N$bJV$9J8;zNs$re(B
ASCII-8BIT e$B$K$9$l$P2sHr$G$-$k$h$&$J5$$,$9$k$N$G$9$,!#e(B
e$B$I$s$JDj5A$G$b$h$1$l$PDj5A$O$G$-$^$9!#$G$b!"$$$m$s$J@-<A$,2ue(B
e$B$l$^$9$h$M!#85$NJ8;zNs$K$O4^$^$l$J$$J8;zNs$,e(B $& e$B$K=P$F$/$k$He(B
e$B$+!#e(B(e$B%P%$%HNs$H$7$F$O4^$^$l$F$k$G$7$g$&$,J8;zNs$H$7$F$Oe(B)
dup e$B$,L5BL$H$$$&M}M3$G;EMM$rOD$a$k$N$O$+$J$jK\KvE>E]$J$h$&$Ke(B
e$B;W$$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