Flowdock
method

internal_encoding

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: ARGF
internal_encoding() public

Returns the internal encoding for strings read from ARGF as an Encoding object.

If ARGF.set_encoding has been called with two encoding names, the second is returned. Otherwise, if Encoding.default_external has been set, that value is returned. Failing that, if a default external encoding was specified on the command-line, that value is used. If the encoding is unknown, nil is returned.

Show source
Register or log in to add new notes.