method

initialize_encoding

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Rails::Initializer

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

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.