io.set_encoding(ext_enc) â io
io.set_encoding("ext_enc:int_enc") â io
io.set_encoding(ext_enc, int_enc) â io
io.set_encoding("ext_enc:int_enc", opt) â io
io.set_encoding(ext_enc, int_enc, opt) â io
io.set_encoding("ext_enc:int_enc") â io
io.set_encoding(ext_enc, int_enc) â io
io.set_encoding("ext_enc:int_enc", opt) â io
io.set_encoding(ext_enc, int_enc, opt) â io
Instance Public methods
If single argument is specified, read string from io is tagged with the encoding specified. If encoding is a colon separated two encoding names âA:Bâ, the read string is converted from encoding A (external encoding) to encoding B (internal encoding), then tagged with B. If two arguments are specified, those must be encoding objects or encoding names, and the first one is the external encoding, and the second one is the internal encoding. If the external encoding and the internal encoding is specified, optional hash argument specify the conversion option.
Please login to continue.