Flowdock
method

external_encoding

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: ARGF
external_encoding() public

Returns the external encoding for files read from ARGF as an Encoding object. The external encoding is the encoding of the text as stored in a file. Contrast with ARGF.internal_encoding, which is the encoding used to represent this text within Ruby.

To set the external encoding use ARGF.set_encoding.

For example:

ARGF.external_encoding  #=>  #<Encoding:UTF-8>
Show source
Register or log in to add new notes.