Ruby中是如何理字符串的?
Q:ruby中字符编码?
Q:在ruby中puts "中" 出现"invalid multitype char<us-ASCII>"
A:ruby中的source code 默的是US-ACSII,不能解析中文。需要把源文件的改“合”的方式,繁是#intern#Return the Symbol corresponding to str, creatin the symbol if it did not #previously existputs "intern"p "ruby".intern #:ruby