http://tech.ddvip.com/2008-01/120060231440625.html
将视力格式转换为gb2312
另外在controller中加入以下代码
将视力格式转换为gb2312
另外在controller中加入以下代码
class ApplicationController < ActionController::Base
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html; charset=utf-8"
end
end
![](http://img.zemanta.com/pixy.gif?x-id=d95b30bf-3e08-8ec7-b6c5-6a13a944f4d6)