D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
IO
/
Filename :
set_encoding-i.ri
back
Copy
U:RDoc::AnyMethod[iI"set_encoding:ETI"IO#set_encoding;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I".See {Encodings}[rdoc-ref:File@Encodings].;To:RDoc::Markup::BlankLine o; ; [I">Argument +ext_enc+, if given, must be an Encoding object ;TI")or a String with the encoding name; ;TI"3it is assigned as the encoding for the stream.;T@o; ; [I">Argument +int_enc+, if given, must be an Encoding object ;TI")or a String with the encoding name; ;TI"<it is assigned as the encoding for the internal string.;T@o; ; [ I"@Argument <tt>'ext_enc:int_enc'</tt>, if given, is a string ;TI"4containing two colon-separated encoding names; ;TI"Acorresponding Encoding objects are assigned as the external ;TI"+and internal encodings for the stream.;T@o; ; [I"@If the external encoding of a string is binary/ASCII-8BIT, ;TI"Athe internal encoding of the string is set to nil, since no ;TI"transcoding is needed.;T@o; ; [I"3Optional keyword arguments +enc_opts+ specify ;TI"B{Encoding options}[rdoc-ref:encodings.rdoc@Encoding+Options].;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"�set_encoding(ext_enc) -> self set_encoding(ext_enc, int_enc, **enc_opts) -> self set_encoding('ext_enc:int_enc', **enc_opts) -> self ;T0[ I"(p1, p2 = v2, p3 = {});T@(FI"IO;TcRDoc::NormalClass00