method

charset=

Importance_1
v6.1.7.7 - 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 default_charset.

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