"\u20AC".encode("euc-jp", :undef=>:replace)

e$B0J2<$N$h$&$Ke(B UTF-8 e$B$Je(B EURO SIGN (20AC) e$B$re(B EUC-JP
e$B$KJQ49$9$ke(B
e$B$H$-$Ke(B :undef=>:replace e$B$r$D$1$k$H!"e(B?
e$B$,$U$?$D=P$F$-$^$9!#e(B

e$BF~NO$Oe(B EURO SIGN e$B$Ne(B 1e$BJ8;z$G$9$+$i!"=PNO$Oe(B ?
e$B$,$R$H$D$K$J$k$Ye(B
e$B$-$G$O$J$$$G$7$g$&$+!#e(B

% ./ruby -ve ‘p “\u20AC”.encode(“euc-jp”, :undef=>:replace)’
ruby 1.9.0 (2008-08-01 revision 18300) [i686-linux]
“??”

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