419件ヒット
[1-100件を表示]
(0.056秒)
種類
- インスタンスメソッド (180)
- ライブラリ (120)
- 文書 (71)
- クラス (36)
- 特異メソッド (12)
ライブラリ
- ビルトイン (72)
-
rexml
/ document (120) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12) -
webrick
/ httpresponse (12)
クラス
-
Encoding
:: UndefinedConversionError (60) -
REXML
:: Document (36) -
REXML
:: Instruction (24) -
REXML
:: XMLDecl (36) -
WEBrick
:: HTTPResponse (12)
モジュール
-
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - == (12)
- Instruction (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - Rubyの起動 (12)
- UndefinedConversionError (12)
- XMLDecl (12)
- cgi (12)
- chunked= (12)
- content (12)
-
destination
_ encoding (12) -
destination
_ encoding _ name (12) -
error
_ char (12) - new (12)
- open-uri (12)
- rdoc (12)
-
rexml
/ document (12) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) -
rexml
/ parsers / ultralightparser (12) - rss (12)
-
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 9 feature (12) -
source
_ encoding (12) -
source
_ encoding _ name (12) -
stand
_ alone? (12) - target (12)
- xmldecl (36)
- yaml (12)
検索結果
先頭5件
-
REXML
:: Document # encoding -> String (18119.0) -
XML 宣言に含まれている XML 文書のエンコーディングを返します。
...宣言を持たない場合はデフォルトの値
(REXML::XMLDecl.defaultで宣言されているもの)を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.encoding # => "UTF-8"
//}... -
REXML
:: Document # version -> String (18119.0) -
XML 宣言に含まれている XML 文書のバージョンを返します。
...XML 宣言を持たない場合はデフォルトの値
(REXML::XMLDecl.defaultで宣言されているもの)を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.version # => "1.0"
//}... -
Encoding
:: UndefinedConversionError # destination _ encoding -> Encoding (12230.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: UndefinedConversionError # source _ encoding -> Encoding (12230.0) -
エラーを発生させた変換の変換元のエンコーディングを Encoding オブジェクトで返します。
...ーディングを Encoding
オブジェクトで返します。
変換が多段階になされる場合は元の文字列のものではない
エンコーディングが返される場合があることに注意してください。
@see Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: UndefinedConversionError # source _ encoding _ name -> Encoding (12214.0) -
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: UndefinedConversionError # destination _ encoding _ name -> String (12113.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: UndefinedConversionError (9072.0) -
エンコーディング変換後の文字が存在しない場合に発生する例外。
...かない文字を EUC-JP に変換しようとした場合などに発生します。
//emlist[例][ruby]{
"\u2603".encode(Encoding::EUC_JP)
#=> Encoding::UndefinedConversionError: U+2603 from UTF-8 to EUC-JP
//}
変換が多段階でなされ、その途中で例外が生じた場合は、
例......e 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 $!.erro......r_char.dump #=> "\u{a0}"
p $!.error_char.encoding #=> #<Encoding:UTF-8>
end
//}... -
Encoding
:: UndefinedConversionError # error _ char -> String (6012.0) -
エラーを発生させた1文字を文字列で返します。
...エラーを発生させた1文字を文字列で返します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
begin
ec.convert("\u{a0}")
rescue Encoding::UndefinedConversionError
puts $!.error_char.dump #=> "\u{a0}"
end
//}... -
REXML
:: XMLDecl . new(version = REXML :: XMLDecl :: DEFAULT _ VERSION , encoding = nil , standalone = nil) (321.0) -
新たな XMLDecl オブジェクトを生成して返します。
...新たな XMLDecl オブジェクトを生成して返します。
version 以外は省略可能です。
@param version バージョン(文字列)
@param encoding エンコーディング(文字列 or nil)
@param standalone スタンドアロン文章かどうか("yes", "no", nil)...