Setting the charset in a Rails App
May 26, 2005 before-filter in application.rb:before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html; charset=ISO-8859-15"
end
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html; charset=ISO-8859-15"
end
This is the defunct blog of Stefan Saasen.