種類
- インスタンスメソッド (252)
- 特異メソッド (137)
- 定数 (60)
- 文書 (12)
- クラス (12)
モジュール
- URI (24)
キーワード
- CP65001 (12)
- String (12)
-
UTF8
_ MAC (12) -
UTF
_ 8 _ HFS (12) -
UTF
_ 8 _ MAC (12) -
ascii
_ compatible? (12) - chr (24)
- compatible? (12)
-
decode
_ www _ form (12) -
decode
_ www _ form _ component (12) - dummy? (12)
- encode (36)
- encode! (24)
-
force
_ encoding (12) - inspect (12)
- name (12)
- names (12)
- new (53)
- open (48)
- replicate (12)
- scrub (36)
- scrub! (36)
-
to
_ s (12) - リテラル (12)
検索結果
先頭5件
-
Encoding
:: UTF _ 8 -> Encoding (15101.0) -
UTF-8。Unicode や ISO 10646 を ASCII 互換な形で符号化するための方式です。
UTF-8。Unicode や ISO 10646 を ASCII 互換な形で符号化するための方式です。
BOM を含みません。
@see https://tools.ietf.org/html/rfc3629 -
Encoding
:: UTF _ 8 _ HFS -> Encoding (3102.0) -
UTF8-MAC、アップルによって修正された Normalization Form D(分解済み)という形式のUTF-8です。
UTF8-MAC、アップルによって修正された Normalization Form D(分解済み)という形式のUTF-8です。
@see http://developer.apple.com/jp/technotes/tn1150.html,
http://developer.apple.com/jp/technotes/tn2078.html -
Encoding
:: UTF _ 8 _ MAC -> Encoding (3102.0) -
UTF8-MAC、アップルによって修正された Normalization Form D(分解済み)という形式のUTF-8です。
UTF8-MAC、アップルによって修正された Normalization Form D(分解済み)という形式のUTF-8です。
@see http://developer.apple.com/jp/technotes/tn1150.html,
http://developer.apple.com/jp/technotes/tn2078.html -
URI
. decode _ www _ form(str , enc=Encoding :: UTF _ 8) -> [[String , String]] (101.0) -
文字列から URL-encoded form data をデコードします。
文字列から URL-encoded form data をデコードします。
application/x-www-form-urlencoded 形式のデータをデコードし、
[key, value] という形の配列の配列を返します。
enc で指定したエンコーディングの文字列が URL エンコードされたものと
みなし、エンコーディングを付加します。
このメソッドは
https://url.spec.whatwg.org/#concept-urlencoded-parser
にもとづいて実装されています。
そのため「&」区切りのみに対応していて、「;」区切りには対応していません。
r... -
URI
. decode _ www _ form _ component(str , enc=Encoding :: UTF _ 8) -> String (101.0) -
URL-encoded form data の文字列の各コンポーネント をデコードした文字列を返します。
URL-encoded form data の文字列の各コンポーネント
をデコードした文字列を返します。
通常は URI.decode_www_form を使うほうがよいでしょう。
"+" という文字は空白文字にデコードします。
enc で指定したエンコーディングの文字列が URL エンコードされたものと
みなし、エンコーディングを付加します。
このメソッドは
https://www.w3.org/TR/html5/sec-forms.html#urlencoded-form-data
にもとづいて実装されています。
//emlist[][ruby]{
require 'uri'
... -
Dir
. new(path) -> Dir (18.0) -
path に対するディレクトリストリームをオープンして返します。
...d = Dir.new(tmpdir, encoding: Encoding::UTF_8)
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
d.close
end
//}
//emlist[例: Dir.open][ruby]{
require 'tmpdir'
Dir.mktmpdir do |tmpdir|
d = Dir.open(tmpdir, encoding: Encoding::UTF_8)
p d.class # => Dir
p d.rea......d.encoding # => #<Encoding:UTF-8>
d.close
Dir.open(tmpdir, encoding: Encoding::UTF_8) do |d|
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
end
end
//}... -
Dir
. new(path , encoding: Encoding . find("filesystem")) -> Dir (18.0) -
path に対するディレクトリストリームをオープンして返します。
...d = Dir.new(tmpdir, encoding: Encoding::UTF_8)
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
d.close
end
//}
//emlist[例: Dir.open][ruby]{
require 'tmpdir'
Dir.mktmpdir do |tmpdir|
d = Dir.open(tmpdir, encoding: Encoding::UTF_8)
p d.class # => Dir
p d.rea......d.encoding # => #<Encoding:UTF-8>
d.close
Dir.open(tmpdir, encoding: Encoding::UTF_8) do |d|
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
end
end
//}... -
Dir
. open(path) -> Dir (18.0) -
path に対するディレクトリストリームをオープンして返します。
...d = Dir.new(tmpdir, encoding: Encoding::UTF_8)
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
d.close
end
//}
//emlist[例: Dir.open][ruby]{
require 'tmpdir'
Dir.mktmpdir do |tmpdir|
d = Dir.open(tmpdir, encoding: Encoding::UTF_8)
p d.class # => Dir
p d.rea......d.encoding # => #<Encoding:UTF-8>
d.close
Dir.open(tmpdir, encoding: Encoding::UTF_8) do |d|
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
end
end
//}... -
Dir
. open(path) {|dir| . . . } -> object (18.0) -
path に対するディレクトリストリームをオープンして返します。
...d = Dir.new(tmpdir, encoding: Encoding::UTF_8)
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
d.close
end
//}
//emlist[例: Dir.open][ruby]{
require 'tmpdir'
Dir.mktmpdir do |tmpdir|
d = Dir.open(tmpdir, encoding: Encoding::UTF_8)
p d.class # => Dir
p d.rea......d.encoding # => #<Encoding:UTF-8>
d.close
Dir.open(tmpdir, encoding: Encoding::UTF_8) do |d|
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
end
end
//}...