default_internal
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (0)
- 1_9_3_125 (38)
- 1_9_3_392 (0)
- 2_1_10 (-2)
- 2_2_9 (-1)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
default_internal()
public
Returns default internal encoding. Strings will be transcoded to the default internal encoding in the following places if the default internal encoding is not nil:
-
File data read from disk
-
Strings returned from Readline
-
Strings returned from SDBM
-
Values from ENV
-
Values in ARGV including $PROGRAM_NAME
Additionally String#encode and String#encode! use the default internal encoding if no encoding is given.
The locale encoding (__ENCODING__), not default_internal, is used as the encoding of created strings.
Encoding::default_internal is initialized by the source file’s internal_encoding or -E option.