2011-07-04から1日間の記事一覧
ApplicationControllerに追加 after_filter :change_charset_to_sjis, :only => [:sjis_page] protected def change_charset_to_sjis response.body = NKF::nkf('-Ws', response.body) headers["Content-Type"] = "text/html; charset=Shift_JIS" end その他…