采用UTF-8解决Ruby on Rails程序的中问题 1.将.rb文件和.rhtml文件都保存为utf-8格式; 2.在/app/Controller/application.rb中增加如下代码: ruby 代码 代码如下: 忧郁深蓝 2008-12-22 13:07:57