[Bug #830] Encoding::UndefinedConversionError


#1

Bug #830: Encoding::UndefinedConversionError
http://redmine.ruby-lang.org/issues/show/830

e$B5/I<<Te(B: rubikitch .
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal

Encoding::UndefinedConversionErrore$B$N%(%i!<%a%C%;!<%8$Oe(B
e$BFbIt$Ne(BUTF-8e$B$G$O$J$/$FJQ4985!J$3$N>l9ge(BEUC-JPe$B!K$r<($7$?$[$&$,$o$+$j$d$9$$$H;W$$$^$9!#e(B

-- coding: euc-jp --

“e$B$”$“e(B”.encode(“US-ASCII”) rescue $!

=> #<Encoding::UndefinedConversionError: “\xE3\x81\x82” from UTF-8 to

US-ASCII>


#2

e$B%A%1%C%He(B #830 e$B$,99?7$5$l$^$7$?!#e(B (by Martin De$(D+de(Brst)

e$B%+%F%4%je(B M17Ne$B$K%;%C%He(B
e$BM%@hEYe(B Normale$B$+$ie(BLowe$B$KJQ99e(B
Target version 1.9.xe$B$K%;%C%He(B

e$B5$Mn$A$ONI$/J,$+$j$^$9!#e(B
e$B<BAu$OBgJQFq$7$$$G$9!#e(B(e$BFC$KJQ49%9%T!<%I$r8:$i$7$?$/$J$$>l9ge(B)
1.9.x e$B$G$G$-$k$+!"e(B2.0 e$B0J9_$K$J$k$+J,$+$j$^$;$s!#e(B

http://redmine.ruby-lang.org/issues/show/830


#3

e$B%A%1%C%He(B #830 e$B$,99?7$5$l$^$7$?!#e(B (by Akira T.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r21092.

http://redmine.ruby-lang.org/issues/show/830