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 #=> # ;TI"@ p $!.destination_encoding #=> # ;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