e$B@>;3OB9-$G$9!#e(B
irbe$B>e$Ge(B"".force_encoding(“iso-2022-jp”)e$B$,e(B
ArgumentError: character encodings differ: US-ASCII and ISO-2022-JP
e$B$Ge(BMaybe IRB bug!!e$B$H$J$k860x$rD4$Y$F$_$?$H$3$m!"e(Bdummy
encodinge$B$NJ8;zNs$re(B
inspecte$B$7$?J8;zNs$re(Bprintfe$B$KEO$7$?$H$-$Ke(BArgumentErrore$B$K$J$C$F$$$ke(B
e$B$h$&$G$9!#e(B
% ruby-trunk -v -e ‘printf “%s\n”, “”.force_encoding(“iso-2022-jp”)’
ruby 1.9.0 (2008-02-20 revision 15565) [i686-linux]
% ruby-trunk -v -e ‘printf “%s\n”,
“”.force_encoding(“iso-2022-jp”).inspect’
ruby 1.9.0 (2008-02-20 revision 15565) [i686-linux]
-e:1:in printf': character encodings differ: US-ASCII and ISO-2022-JP (ArgumentError) from -e:1:in
’
%
e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B
In message “Re: [ruby-dev:33894] character encodings differ: US-ASCII
and dummy encoding”
on Fri, 22 Feb 2008 02:37:21 +0900, Kazuhiro NISHIYAMA
[email protected] writes:
|irbe$B>e$Ge(B"".force_encoding(“iso-2022-jp”)e$B$,e(B
|ArgumentError: character encodings differ: US-ASCII and ISO-2022-JP
|e$B$Ge(BMaybe IRB bug!!e$B$H$J$k860x$rD4$Y$F$_$?$H$3$m!"e(Bdummy encodinge$B$NJ8;zNs$re(B
|inspecte$B$7$?J8;zNs$re(Bprintfe$B$KEO$7$?$H$-$Ke(BArgumentErrore$B$K$J$C$F$$$ke(B
|e$B$h$&$G$9!#e(B
ISO-2022-JPe$B$Oe(BUS-ASCIIe$B$NHO0OFb$K$O<}$^$i$J$$$N$G%(%i!<$K$J$k$Ne(B
e$B$O$“$k0UL#EvA3$@$H;W$&$N$G$9$,!”<B:]$K$O$I$&$"$k$Y$-$@$H;W$$e(B
e$B$^$9$+!)e(B
e$B$b$7$+$7$F!Ve(BISO-2022-JPe$B$Oe(BUS-ASCIIe$B$N>e0L8_49!W$H$+$$$&>pJs$r$<e(B
e$B$s$V%G!<%?%Y!<%92=$9$kI,MW$,$"$k$s$G$7$g$&$+!#$=$l$H$be(BASCII
e$B8_49$J%(%s%3!<%G%#%s%0$He(BUS-ASCIIe$B$O$$$D$b8_49$H$$$&$3$H$K$7$^e(B
e$B$7$g$&$+!#e(B
e$B8e<T$+$J!#e(B
e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B
In message “Re: [ruby-dev:33897] Re: character encodings differ:
US-ASCII and dummy encoding”
on Fri, 22 Feb 2008 09:41:05 +0900, Yukihiro M.
[email protected] writes:
|e$B$b$7$+$7$F!Ve(BISO-2022-JPe$B$Oe(BUS-ASCIIe$B$N>e0L8_49!W$H$+$$$&>pJs$r$<e(B
|e$B$s$V%G!<%?%Y!<%92=$9$kI,MW$,$"$k$s$G$7$g$&$+!#$=$l$H$be(BASCII
|e$B8_49$J%(%s%3!<%G%#%s%0$He(BUS-ASCIIe$B$O$$$D$b8_49$H$$$&$3$H$K$7$^e(B
|e$B$7$g$&$+!#e(B
|
|e$B8e<T$+$J!#e(B
e$B$H;W$C$F$4$=$4$=$7$F$$?$N$G$9$,!"e(BISO-2022-JPe$B$O%@%!<$J$N$Ge(B
e$B!Ve(BASCIIe$B8_49!W$G$O$J$$$N$G$7$?!#e(BISO-2022-JPe$B$r$=$N$^$^FbItE*$Je(B
e$B%3!<%I$H$7$F=hM}$9$k$N$OL5M}$,$"$k$s$G$7$g$&$M!#e(B
e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B
In message “[ruby-dev:33897] Re: character encodings differ: US-ASCII
and dummy encoding”
on Feb.22,2008 09:41:05, [email protected] wrote:
| |irbe$B>e$Ge(B"“.force_encoding(“iso-2022-jp”)e$B$,e(B
| |ArgumentError: character encodings differ: US-ASCII and ISO-2022-JP
| |e$B$Ge(BMaybe IRB bug!!e$B$H$J$k860x$rD4$Y$F$_$?$H$3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Ge(B
“”.force_encoding(“iso-2022-jp”)
e$B$r9T$C$?>l9g$O%(%9%1!<%W$5$l$k$h$&$K$Je(B
e$B$k$N$G!"$H$j$"$($:$3$NJ}8~$,$h$$$H$*$b$&$N$G$9$,!"$I$&$G$9$+!#e(B
dummy e$B$O>o$Ke(B escape
e$B$H$$$&$N$b$3$l$H$OJL$K8!F$$,I,MW$G$7$g$&$M!#e(B
e$B@.@%$G$9!#e(B
Yukihiro M. wrote:
|dummy e$B$O>o$Ke(B escape e$B$H$$$&$N$b$3$l$H$OJL$K8!F$$,I,MW$G$7$g$&$M!#e(B
dummye$B$O>o$Ke(Bescapee$B$9$Y$-$J$s$G$7$g$&$M!#@.@%$5$s!"$G$-$^$9$+!)e(B
r15572 e$B$G$d$C$F$$-$^$7$?!#e(B
e$B$J$!"e(Bdummy e$B$@$1$G$J$/e(B UTF-16BE e$B$N$h$&$Je(B ASCII
compatible e$B$G$J$$J8;zNs$Ne(B
e$B>l9g$bF1MM$@$H;W$o$l$?$N$Ge(B e$B$3$A$i$be(B escape
e$B$9$k$h$&$K$7$F$$$^$9!#e(B
e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B
In message “Re: [ruby-dev:33900] Re: character encodings differ:
US-ASCII and dummy encoding”
on Fri, 22 Feb 2008 10:59:00 +0900, “NARUSE, Yui”
[email protected] writes:
|> dummy encodinge$B$Oe(Brubye$B$,$A$c$s$H$O%5%]!<%H$G$-$J$$e(Bencodinge$B$@$He(B
|> e$B$$$&$o$1$G$9$+$i!“e(Binspecte$B$7$?7k2L$O>o$Ke(Bdumpe$BAjEv$K$J$l$P$$$$e(B
|> (e$B$N$Ge(BUS-ASCIIe$B$K$J$ke(B)e$B$H;W$&$N$G$9$,!”$I$&$G$7$g$&$+!#e(B
|
|e$B$o$?$7$b$3$l$Oe(B inspect e$B$NLdBj$@$H;W$C$F$$$^$9!#e(B
|[ruby-dev:33883] e$B$N%Q%C%A$rE,MQ$9$k$H$H$j$“$($:e(B irb e$B$Ge(B
|”“.force_encoding(“iso-2022-jp”) e$B$r9T$C$?>l9g$O%(%9%1!<%W$5$l$k$h$&$K$Je(B
|e$B$k$N$G!”$H$j$“$($:$3$NJ}8~$,$h$$$H$*$b$&$N$G$9$,!”$I$&$G$9$+!#e(B
e$B$3$l$O$3$l$GJV;v$7$^$9!#$A$g$C$HBT$C$F$M!#e(B
|dummy e$B$O>o$Ke(B escape e$B$H$$$&$N$b$3$l$H$OJL$K8!F$$,I,MW$G$7$g$&$M!#e(B
dummye$B$O>o$Ke(Bescapee$B$9$Y$-$J$s$G$7$g$&$M!#@.@%$5$s!"$G$-$^$9$+!)e(B
29e$BF|$K8~$1$Fe(Bissue trackinge$B$7$J$$$H$J$"!#e(B