class ApplicationController < ActionController::Base before_filter {|c| c.params.each {|k, v| v.force_encoding("UTF-8") }} end