default_internal=

Encoding.default_internal = enc or nil
Class Public methods

Sets default internal encoding or removes default internal encoding when passed nil. You should not set ::default_internal in ruby code as strings created before changing the value may have a different encoding from strings created after the change. Instead you should use ruby -E to invoke ruby with the correct default_internal.

See ::default_internal for information on how the default internal encoding is used.

doc_ruby_on_rails
2015-04-04 21:24:29
Comments
Leave a Comment

Please login to continue.