Flowdock
method

initialize_encoding

Importance_1
v2.3.8 - Show latest stable - 0 notes - Class: Rails::Initializer
initialize_encoding() public

For Ruby 1.8, this initialization sets $KCODE to ‘u’ to enable the multibyte safe operations. Plugin authors supporting other encodings should override this behaviour and set the relevant default_charset on ActionController::Base.

For Ruby 1.9, this does nothing. Specify the default encoding in the Ruby shebang line if you don’t want UTF-8.

Show source
Register or log in to add new notes.