1125件ヒット
[1-100件を表示]
(0.032秒)
ライブラリ
- ビルトイン (537)
-
cgi
/ core (12) - csv (144)
- kconv (132)
-
minitest
/ unit (1) - open-uri (12)
- openssl (12)
-
rexml
/ document (84) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12) - uri (12)
-
webrick
/ httpresponse (12)
クラス
-
ARGF
. class (24) - CSV (144)
-
Encoding
:: Converter (276) -
Encoding
:: InvalidByteSequenceError (48) -
Encoding
:: UndefinedConversionError (60) -
OpenSSL
:: SSL :: SSLContext (12) -
RDoc
:: Options (24) -
REXML
:: Document (24) -
REXML
:: Instruction (24) -
REXML
:: XMLDecl (24) - String (81)
-
WEBrick
:: HTTPResponse (12)
モジュール
-
CGI
:: QueryExtension (12) - Kconv (132)
-
MiniTest
:: Assertions (1) -
OpenURI
:: Meta (12) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12) - URI (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - ASCII (12)
- BINARY (12)
- Converter (12)
- ConverterEncoding (12)
- ConverterNotFoundError (12)
- EUC (12)
- Instruction (12)
- InvalidByteSequenceError (12)
- JIS (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - Rubyの起動 (12)
- SJIS (12)
- UTF16 (12)
- UTF32 (12)
- UTF8 (12)
- UndefinedConversionError (12)
-
accept
_ encoding (12) -
asciicompat
_ encoding (24) -
ca
_ file= (12) - cgi (12)
- chunked= (12)
- concat (21)
- content (12)
-
content
_ encoding (12) - convert (12)
- convpath (12)
-
decode
_ www _ form _ component (12) -
destination
_ encoding (36) -
destination
_ encoding _ name (24) - encode (36)
- encode! (24)
- encoding= (12)
-
error
_ bytes (12) -
error
_ char (12) - finish (12)
- foreach (24)
- generate (12)
-
generate
_ line (12) - guess (12)
-
incomplete
_ input? (12) -
insert
_ output (12) - inspect (12)
- isjis (12)
-
last
_ error (12) -
mu
_ pp (1) - new (60)
- open (48)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - putback (24)
- rdoc (12)
- read (12)
- readlines (12)
- replacement (12)
- replacement= (12)
-
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
search
_ convpath (12) -
set
_ encoding (24) -
source
_ encoding (24) -
source
_ encoding _ name (12) -
stand
_ alone? (12) - target (12)
- tolocale (12)
- version (12)
- xmldecl (36)
- 正規表現 (12)
検索結果
先頭5件
-
Encoding
:: UndefinedConversionError # destination _ encoding -> Encoding (21330.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::UndefinedConversionError#source_encoding... -
RDoc
:: Options # encoding -> Encoding (21240.0) -
コマンドライン引数の --encoding オプションを指定していた場合、指定した エンコーディングに対応する Encoding オブジェクトを返します。
...コマンドライン引数の --encoding オプションを指定していた場合、指定した
エンコーディングに対応する Encoding オブジェクトを返します。
指定しなかった場合は Encoding.default_external の値を返します。... -
Encoding
:: UndefinedConversionError # destination _ encoding _ name -> String (21213.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: Converter # destination _ encoding -> Encoding (18320.0) -
変換先のエンコーディングを返します。
...変換先のエンコーディングを返します。
@return 変換先のエンコーディング
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "euc-jp")
ec.destination_encoding #=> #<Encoding:EUC-JP>
//}... -
Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding (15342.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: UndefinedConversionError # source _ encoding -> Encoding (15230.0) -
エラーを発生させた変換の変換元のエンコーディングを Encoding オブジェクトで返します。
...ーディングを Encoding
オブジェクトで返します。
変換が多段階になされる場合は元の文字列のものではない
エンコーディングが返される場合があることに注意してください。
@see Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: UndefinedConversionError # source _ encoding _ name -> Encoding (15214.0) -
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String (15213.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#destination_encoding... -
Encoding
:: UndefinedConversionError (15072.0) -
エンコーディング変換後の文字が存在しない場合に発生する例外。
...かない文字を EUC-JP に変換しようとした場合などに発生します。
//emlist[例][ruby]{
"\u2603".encode(Encoding::EUC_JP)
#=> Encoding::UndefinedConversionError: U+2603 from UTF-8 to EUC-JP
//}
変換が多段階でなされ、その途中で例外が生じた場合は、
例......ng::Converter.new("ISO-8859-1", "EUC-JP")
# ISO-8859-1 -> UTF-8 -> EUC-JP
begin
ec.convert("\xa0")
# NO-BREAK SPACE, which is available in UTF-8 but not in EUC-JP.
rescue Encoding::UndefinedConversionError
p $!.source_encoding #=> #<Encoding:UTF-8>
p $!.destination_encoding......#=> #<Encoding:EUC-JP>
p $!.source_encoding_name #=> "UTF-8"
p $!.destination_encoding_name #=> "EUC-JP"
puts $!.error_char.dump #=> "\u{a0}"
p $!.error_char.encoding #=> #<Encoding:UTF-8>
end
//}...