method

charset=

Importance_1
v5.0.0.1 - Show latest stable - 0 notes - Class: ActionDispatch::Response
charset=(charset) public

Sets the HTTP character set. In case of nil parameter it sets the charset to utf-8.

response.charset = 'utf-16' # => 'utf-16'
response.charset = nil      # => 'utf-8'
Show source
Register or log in to add new notes.