US-ASCII $B$N5sF0(B

e$B<!$N?6$kIq$$$O$$$+$,$G$7$g$&$+e(B:

ruby -E:iso-8859-1 -e’puts "\uabcd’.encode.inspect’
“?”

ruby -E:ascii-8bit -e’puts "\uabcd’.encode.inspect’
“?”

ruby -E:shift_jis -e’puts "\uabcd’.encode.inspect’
“?”

ruby -E:euc-jp -e’puts "\uabcd’.encode.inspect’
“?”

e$B$3$3$^$G$O4|BTDL$j$G$9$,e(B

ruby -E:us-ascii -e’puts "\uabcd’.encode.inspect’
“\xEA\xAF\x8D”

e$B$O$J$<$G$7$g$&$+!#F1MM$K!"e(B

ruby -E:iso-8859-1 -e’puts "\xFF’.force_encoding(“UTF-8”).encode.inspect’
“?”

e$B0J2<F1MM$G!"$7$+$7$b$&0lEYe(B:

ruby -E:us-ascii -e’puts "\xFF’.force_encoding(“UTF-8”).encode.inspect’
“\xFF”

e$B$h$m$7$/$*4j$$$7$^$9!#e(B Martin.

#-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-# http://www.sw.it.aoyama.ac.jp mailto:[email protected]

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