| Server IP : 167.99.254.82 / Your IP : 216.73.216.252 Web Server : Apache System : Linux host.techisquad.com 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : pawluxera ( 1011) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/ri/3.0.0/system/Encoding/InvalidByteSequenceError/ |
Upload File : |
U:RDoc::AnyMethod[iI"source_encoding:ETI"7Encoding::InvalidByteSequenceError#source_encoding;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"7Returns the source encoding as an encoding object.;To:RDoc::Markup::BlankLine o;
; [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"InvalidByteSequenceError;TcRDoc::NormalClass00