333件ヒット
[1-100件を表示]
(0.200秒)
ライブラリ
クラス
- Array (21)
-
Encoding
:: Converter (84) -
Encoding
:: InvalidByteSequenceError (24) - IO (6)
-
Net
:: IMAP :: BodyTypeBasic (12) -
Net
:: IMAP :: BodyTypeMessage (12) -
Net
:: IMAP :: BodyTypeText (12) -
Psych
:: Handler (12) -
Psych
:: Nodes :: Stream (24) -
Psych
:: Stream (24) -
Psych
:: Visitors :: YAMLTree (12) - String (24)
- Time (18)
-
WEBrick
:: HTTPRequest (12)
モジュール
-
CGI
:: QueryExtension (12) -
Net
:: HTTPHeader (24)
キーワード
-
accept
_ encoding (12) - convpath (12)
-
each
_ key (12) -
each
_ name (12) - encoding= (12)
-
error
_ bytes (12) -
incomplete
_ input? (12) - inspect (6)
- pack (21)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - putback (12)
- query (12)
- scanf (12)
-
set
_ encoding _ by _ bom (6) - start (36)
-
start
_ stream (12) -
to
_ s (12) - unpack (12)
検索結果
先頭5件
-
Net
:: IMAP :: BodyTypeBasic # encoding -> String (24118.0) -
Content-Transfer-Encoding の値を文字列で返します。
...Content-Transfer-Encoding の値を文字列で返します。
@see 2045... -
Net
:: IMAP :: BodyTypeMessage # encoding -> String (24118.0) -
Content-Transfer-Encoding の値を文字列で返します。
...Content-Transfer-Encoding の値を文字列で返します。
@see 2045... -
Net
:: IMAP :: BodyTypeText # encoding -> String (24118.0) -
Content-Transfer-Encoding の値を文字列で返します。
...Content-Transfer-Encoding の値を文字列で返します。
@see 2045... -
Psych
:: Nodes :: Stream # encoding -> Integer (24108.0) -
stream に使われるエンコーディングを返します。
...stream に使われるエンコーディングを返します。
@see Psych::Nodes::Stream#encoding=... -
CGI
:: QueryExtension # accept _ encoding -> String (15218.0) -
ENV['HTTP_ACCEPT_ENCODING'] を返します。
...ENV['HTTP_ACCEPT_ENCODING'] を返します。... -
IO
# set _ encoding _ by _ bom -> Encoding | nil (12357.0) -
BOM から IO のエンコーディングを設定します。
...[例][ruby]{
File.write("bom.txt", "\u{FEFF}abc")
File.open("bom.txt", "rb") do |io|
p io.set_encoding_by_bom #=> #<Encoding:UTF-8>
str = io.read
p str #=> "abc"
p str.encoding #=> #<Encoding:UTF-8>
end
File.write("nobom.txt", "abc")
File.open("nobom.......txt", "rb") do |io|
p io.set_encoding_by_bom #=> nil
end
//}... -
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (12155.0) -
エラー発生時に入力文字列が不足している場合に真を返します。
...します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1z")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "z" on EUC-JP>
p $!.incomplete_input? #=> false
end
begin
ec.......convert("abc\xA1")
ec.finish
rescue Encoding::InvalidByteSequenceError
p $! #=> #<Encoding::InvalidByteSequenceError: incomplete "\xA1" on EUC-JP>
p $!.incomplete_input? #=> true
end
//}... -
Encoding
:: InvalidByteSequenceError # error _ bytes -> String (12131.0) -
エラー発生時に捨てられたバイト列を返します。
...[ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1\xFFdef")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "\xFF" on EUC-JP>
puts $!.error_bytes.dump #=> "\xA1"
puts $!.readagain_bytes.......dump #=> "\xFF"
end
//}
@see Encoding::InvalidByteSequenceError#readagain_bytes... -
Psych
:: Nodes :: Stream # encoding=(enc) (12108.0) -
stream に使われるエンコーディングを指定します。
...stream に使われるエンコーディングを指定します。
以下のいずれかを指定します。
* Psych::Nodes::Node::UTF8
* Psych::Nodes::Node::UTF16BE
* Psych::Nodes::Node::UTF16LE
@param enc 設定するエンコーディング
@see Psych::Nodes::Stream#encoding...