1125件ヒット
[101-200件を表示]
(0.056秒)
ライブラリ
- ビルトイン (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 - Encoding
:: Converter . search _ convpath(source _ encoding , destination _ encoding , options) -> Array - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol - Encoding
:: Converter . asciicompat _ encoding(encoding) -> Encoding | nil
-
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
//}... -
Encoding
:: Converter . search _ convpath(source _ encoding , destination _ encoding , options) -> Array (12646.0) -
引数で指定した文字エンコーディングの変換の経路を配列にして返します。
...ます。
@param source_encoding 変換元の文字エンコーディングを Encoding オ
ブジェクトか文字列で指定します。
@param destination_encoding 変換先の文字エンコーディングを
Encoding オブジェクトか......@param options 変換の詳細を指定する定数やハッシュを指定します。
Encoding::Converter.new と同じオプションが指定でき
ます。
//emlist[][ruby]{
p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP")
# => [[#<Encoding:ISO-8859-......# [#<Encoding:UTF-8>, #<Encoding:EUC-JP>]]
p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP", universal_newline: true)
# or
p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP", newline: :universal)
# => [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>],
# [#<Encoding:UTF-8>,... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol (12542.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_by......ram options 変換の詳細を指定する定数やハッシュ
@return 変換結果を表す Symbol
options には以下が指定できます。
: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversion after o......utput before input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_e... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol (12442.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_by......ram options 変換の詳細を指定する定数やハッシュ
@return 変換結果を表す Symbol
options には以下が指定できます。
: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversion after o......utput before input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_e... -
Encoding
:: Converter . asciicompat _ encoding(encoding) -> Encoding | nil (12359.0) -
同じ文字集合を持つ ASCII 互換エンコーディングを返します。
...同じ文字集合を持つ ASCII 互換エンコーディングを返します。
@param string エンコーディング名
@param encoding エンコーディングオブジェクト
@return ASCII 互換エンコーディングのオブジェクトか nil
引数とエンコーディングと同......ングでない場合は nil を返します。
//emlist[][ruby]{
Encoding::Converter.asciicompat_encoding("ISO-2022-JP") #=> #<Encoding:stateless-ISO-2022-JP>
Encoding::Converter.asciicompat_encoding("UTF-16BE") #=> #<Encoding:UTF-8>
Encoding::Converter.asciicompat_encoding("UTF-8") #=> nil
//}... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset) -> Symbol (12342.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_by......ram options 変換の詳細を指定する定数やハッシュ
@return 変換結果を表す Symbol
options には以下が指定できます。
: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversion after o......utput before input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_e... -
CSV
:: ConverterEncoding -> Encoding (12301.0) -
すべての変換器で使用するエンコーディングです。
すべての変換器で使用するエンコーディングです。 -
Encoding
:: Converter . asciicompat _ encoding(string) -> Encoding | nil (12259.0) -
同じ文字集合を持つ ASCII 互換エンコーディングを返します。
...同じ文字集合を持つ ASCII 互換エンコーディングを返します。
@param string エンコーディング名
@param encoding エンコーディングオブジェクト
@return ASCII 互換エンコーディングのオブジェクトか nil
引数とエンコーディングと同......ングでない場合は nil を返します。
//emlist[][ruby]{
Encoding::Converter.asciicompat_encoding("ISO-2022-JP") #=> #<Encoding:stateless-ISO-2022-JP>
Encoding::Converter.asciicompat_encoding("UTF-16BE") #=> #<Encoding:UTF-8>
Encoding::Converter.asciicompat_encoding("UTF-8") #=> nil
//}... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer) -> Symbol (12242.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_by......ram options 変換の詳細を指定する定数やハッシュ
@return 変換結果を表す Symbol
options には以下が指定できます。
: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversion after o......utput before input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_e...