Conversion undefined by "\xdc\x00".encode("EUC-JP", "UTF-16BE", :invalid=>:replace)

“\xdc\x00” e$B$re(B UTF-16BE e$B$+$ie(B EUC-JP e$B$Ke(B
:invalid=>:replace e$B$r$D$1$FJQ49$9$k$He(B
conversion undefined for byte sequence e$B$K$J$j$^$9!#e(B

% ./ruby -ve ‘p “\xdc\x00”.encode(“EUC-JP”, “UTF-16BE”,
:invalid=>:replace)’
ruby 1.9.0 (2008-08-06 revision 18381) [i686-linux]
-e:1:in encode': conversion undefined for byte sequence (maybe invalid byte sequence) (RuntimeError) from -e:1:in

e$BF~NO$Ne(B “\xdc\x00” e$B$Oe(B invalid e$B$G$9$,!“e(Binvalid e$B$Oe(B
replace e$B$K;Xe(B
e$BDj$7$F$”$k$N$G!"Nc30$,=P$k$N$O4|BT$5$l$J$$$s$8$c$J$$$G$7$g$&e(B
e$B$+!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs