1278件ヒット
[1-100件を表示]
(0.055秒)
ライブラリ
- ビルトイン (657)
-
cgi
/ core (12) - csv (204)
- kconv (132)
-
net
/ http (24) - psych (12)
-
rexml
/ document (60) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12) - win32ole (12)
クラス
- Array (21)
- CSV (192)
-
Encoding
:: Converter (276) -
Encoding
:: InvalidByteSequenceError (84) -
Encoding
:: UndefinedConversionError (60) - IO (144)
-
Psych
:: Visitors :: YAMLTree (12) -
RDoc
:: Options (12) -
REXML
:: Document (36) -
REXML
:: XMLDecl (24) - String (24)
-
WIN32OLE
_ VARIANT (12)
モジュール
- Kconv (132)
-
Net
:: HTTPHeader (24) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - ASCII (12)
- BINARY (12)
- CSV (12)
- Converter (12)
- ConverterEncoding (12)
- ConverterNotFoundError (12)
- EUC (12)
- InvalidByteSequenceError (12)
- InvalidEncoding (12)
- JIS (12)
-
NEWS for Ruby 2
. 3 . 0 (10) -
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)
-
asciicompat
_ encoding (24) - cgi (12)
- convert (12)
- convpath (12)
-
destination
_ encoding (36) -
destination
_ encoding _ name (24) - each (12)
-
each
_ header (12) - encoding= (12)
-
error
_ bytes (12) -
error
_ char (12) -
external
_ encoding (12) - finish (12)
- foreach (24)
- generate (12)
-
generate
_ line (12) - guess (12)
-
incomplete
_ input? (12) -
insert
_ output (12) - inspect (24)
-
internal
_ encoding (12) - isjis (12)
-
last
_ error (12) - new (72)
- open (48)
- pack (21)
- pack テンプレート文字列 (12)
- popen (144)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - putback (24)
- read (12)
-
readagain
_ bytes (12) - readlines (12)
- replacement (12)
- replacement= (12)
-
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
search
_ convpath (12) -
source
_ encoding (36) -
source
_ encoding _ name (24) - start (12)
- tolocale (12)
- unpack (12)
-
valid
_ encoding? (12) - version (12)
- write (24)
- xmldecl (36)
- リテラル (12)
- 変数と定数 (12)
- 正規表現 (12)
検索結果
先頭5件
- CSV
# encoding -> Encoding - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer) -> Symbol - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset) -> Symbol - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol
-
CSV
# encoding -> Encoding (21214.0) -
読み書きするときに使用するエンコーディングを返します。
...読み書きするときに使用するエンコーディングを返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.encoding # => #<Encoding:UTF-8>
//}... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer) -> Symbol (18242.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...可搬性を確保しつつ、不正なバイトや変換先で未定義な文字の扱いを細かに指定したいときは、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文......=> true # stop conversion after output before input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
*......//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive_errinfo]
case ret
when :invalid_byte_sequence
ec.insert_output(ec.primitive_errinfo[3].dump[1..-2]... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset) -> Symbol (18242.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...可搬性を確保しつつ、不正なバイトや変換先で未定義な文字の扱いを細かに指定したいときは、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文......=> true # stop conversion after output before input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
*......//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive_errinfo]
case ret
when :invalid_byte_sequence
ec.insert_output(ec.primitive_errinfo[3].dump[1..-2]... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol (18242.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...可搬性を確保しつつ、不正なバイトや変換先で未定義な文字の扱いを細かに指定したいときは、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文......=> true # stop conversion after output before input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
*......//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive_errinfo]
case ret
when :invalid_byte_sequence
ec.insert_output(ec.primitive_errinfo[3].dump[1..-2]... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol (18242.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...可搬性を確保しつつ、不正なバイトや変換先で未定義な文字の扱いを細かに指定したいときは、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文......=> true # stop conversion after output before input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
*......//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive_errinfo]
case ret
when :invalid_byte_sequence
ec.insert_output(ec.primitive_errinfo[3].dump[1..-2]... -
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
//}... -
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
:: InvalidByteSequenceError # destination _ encoding -> Encoding (12242.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding...