# encoding: utf-8
foo = "Résumé"
p foo
> “简历”
# encoding: utf-8
ARGV.each do |argument|
p argument
end
test.rb 简历> "R\xE9sum\xE9"
为什么会发生这种情况,我怎样才能让 ARGV 返回“简历”?
我已经设置了chcp 65001并且正在使用ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
编辑在 irc 上四处询问后,我被指示去做chcp 1252>NUL
解决问题的方法。