Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
ARGF
/
//opt/alt/ruby27/share/ri/system/ARGF/set_encoding-i.ri
U:RDoc::AnyMethod[iI"set_encoding:ETI"ARGF#set_encoding;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"MIf single argument is specified, strings read from ARGF are tagged with ;TI"the encoding specified.;To:RDoc::Markup::BlankLine o; ; [ I"OIf two encoding names separated by a colon are given, e.g. "ascii:utf-8", ;TI"Nthe read string is converted from the first encoding (external encoding) ;TI"Mto the second encoding (internal encoding), then tagged with the second ;TI"encoding.;T@o; ; [I"OIf two arguments are specified, they must be encoding objects or encoding ;TI"Inames. Again, the first specifies the external encoding; the second ;TI"%specifies the internal encoding.;T@o; ; [I"KIf the external encoding and the internal encoding are specified, the ;TI"Poptional +Hash+ argument can be used to adjust the conversion process. The ;TI"Lstructure of this hash is explained in the String#encode documentation.;T@o; ; [I"For example:;T@o:RDoc::Markup::Verbatim; [ I"IARGF.set_encoding('ascii') # Tag the input as US-ASCII text ;TI"FARGF.set_encoding(Encoding::UTF_8) # Tag the input as UTF-8 text ;TI"LARGF.set_encoding('utf-8','ascii') # Transcode the input from US-ASCII ;TI"3 # to UTF-8.;T:@format0: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"�ARGF.set_encoding(ext_enc) -> ARGF ARGF.set_encoding("ext_enc:int_enc") -> ARGF ARGF.set_encoding(ext_enc, int_enc) -> ARGF ARGF.set_encoding("ext_enc:int_enc", opt) -> ARGF ARGF.set_encoding(ext_enc, int_enc, opt) -> ARGF ;T0[ I"(*args);T@)FI" ARGF;TcRDoc::NormalClass00