With this file:

# coding: UTF-8
puts "asdf??我抗我技忘????"

output in windows is:

C:\dev\digitalarchive_trunk>ruby -v go.rb
ruby 1.9.3dev (2010-05-11 trunk 27724) [i386-mingw32]
asdf??阬?兩????兩????兩????兩????兩????勻T?勻?


Is this expected?

Also shouldn't the following code fail?

"asdf??我抗我技忘????".force_encoding "IBM437"

(it doesn't)

Thanks!
-rp
-- 
Posted via http://www.ruby-forum.com/.