Encoding.default_external = enc
Class Public methods
Sets default external encoding. You should not set ::default_external in
ruby code as strings created before changing the value may have a different
encoding from strings created after the value was changed., instead you
should use ruby -E to invoke ruby with the correct
default_external.
See ::default_external for
information on how the default external encoding is used.