新手问题 rails 编码问题

small_fish__ · October 15, 2012 · Last by small_fish__ replied at October 15, 2012 · 1818 hits

我的环境: ruby 1,9.3 rails 2.3.14 问题报出 invalid multibyte char (US-ASCII) (SyntaxError) 问题,我在写有中文的 rb 文件中头上加了#encoding:utf-8 结果还是错误。 不知道有没有类似问题的朋友

既然是 rails2,那最好用 ruby 1.8.7,就不会有这个编码问题了

#1 楼 @cxh116 恩,果然是这个问题,谢谢了~

You need to Sign in before reply, if you don't have an account, please Sign up first.