e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B
In message “Re: [ruby-dev:40863] Re: revert 1.9 \w limitation to ASCII”
on Wed, 31 Mar 2010 02:39:18 +0900, “NARUSE, Yui”
[email protected] writes:
|e$B!VBg$-$JHs8_49@-$K$J$j$=$&$G$9!W$H$$$&$N$O2?$+6qBNE*$J%U%#!<%I%P%C%/$,e(B
|e$BGX7J$K$“$k$H;W$C$F$$$k$N$G$9$,!”$I$N$h$&$J%U%#!<%I%P%C%/$G$7$g$&$+!#e(B
e$BNc$K$h$C$F%=!<%9$r$O$C$-$j3P$($F$$$J$$$N$G62=L$G$9$,!“e(B1.9e$B$Ge(B
\we$B$,%^%C%A$7$J$/$J$C$?$H$$$&6l>p$r8+$?$3$H$,$”$j$^$9!#e(B
Twittere$B$@$C$?$+$J!#e(B
|e$B$^$:!"e(BEUC e$B$de(B SJIS e$B$KBP$7$F$N$b$N$@$H2>Dj$7$^$9!#e(B
|e$B$^$?!“e(BEUC e$B$He(B SJIS e$B7O$N$_$H$$$&$N$O0l4S@-$K7g$1$^$9!#e(B
|e$BMxJX@-$N$?$a$J$i0l4S@-$r7g$/$3$H$b$$$H$o$J$$$N$,e(B Ruby e$B$N;Q@*$G$O$”$j$^$9$,!“e(B
|e$BF|K\8l7O$@$1$H$$$&$N$O@5D>$$$+$,$J$b$N$+$H;W$$$^$9!#e(B
|e$B$H$$$&$o$1$G!”$3$NJ}8~$G9T$/$J$i$P!"e(Bnon ASCII non Unicode e$B$N>l9g$O!"e(B
|e$B$KJQ$($?J}$,$$$$$h$&$K46$8$^$9!#e(B
e$BK?M$O$=$N$D$b$j$G$7$?!#:#FI$_JV$9$H$=$&$OFI$a$^$;$s$M!#e(B
|e$B<!$K!“e(BUnicodee$B!”$H$$$&$+e(B UTF8 e$B$KBP$7$F$N$b$N$@$H2>Dj$7$^$9!#$3$3$G!“e(B
|> Unicodee$B$K$$$$F$O!“%-%c%i%/%?%G!<%?%Y!<e(B
|> e$B%9$,$”$k$N$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