method

charset=

Importance_1
v5.2.3 - 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.