HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/share/ri/2.7.0/system/Encoding/UndefinedConversionError/source_encoding-i.ri
U:RDoc::AnyMethod[iI"source_encoding:ETI"7Encoding::UndefinedConversionError#source_encoding;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[I"7Returns the source encoding as an encoding object.;To:RDoc::Markup::BlankLineo;
;	[I"ENote that the result may not be equal to the source encoding of ;TI"Athe encoding converter if the conversion has multiple steps.;T@o:RDoc::Markup::Verbatim;	[I"Zec = Encoding::Converter.new("ISO-8859-1", "EUC-JP") # ISO-8859-1 -> UTF-8 -> EUC-JP
;TI"begin
;TI"[  ec.convert("\xa0") # NO-BREAK SPACE, which is available in UTF-8 but not in EUC-JP.
;TI"/rescue Encoding::UndefinedConversionError
;TI"?  p $!.source_encoding              #=> #<Encoding:UTF-8>
;TI"@  p $!.destination_encoding         #=> #<Encoding:EUC-JP>
;TI"5  p $!.source_encoding_name         #=> "UTF-8"
;TI"6  p $!.destination_encoding_name    #=> "EUC-JP"
;TI"end;T:@format0:
@fileI"transcode.c;T:0@omit_headings_from_table_of_contents_below0I"4ecerr.source_encoding              -> encoding
;T0[I"();T@FI"UndefinedConversionError;TcRDoc::NormalClass00