69件ヒット
[1-69件を表示]
(0.359秒)
ライブラリ
- uri (58)
モジュール
- URI (58)
キーワード
-
NEWS for Ruby 2
. 1 . 0 (11) - decode (7)
-
decode
_ www _ form _ component (11) -
encode
_ www _ form (11) -
encode
_ www _ form _ component (11) - unescape (7)
検索結果
先頭5件
-
URI
. decode _ www _ form(str , enc=Encoding :: UTF _ 8) -> [[String , String]] (18315.0) -
文字列から URL-encoded form data をデコードします。
...。
そのため「&」区切りのみに対応していて、「;」区切りには対応していません。
require 'uri'
ary = URI.decode_www_form("a=1&a=2&b=3")
p ary #=> [['a', '1'], ['a', '2'], ['b', '3']]
p ary.assoc('a').last #=> '1'
p ary.assoc('b').last #=>......assoc('a').last #=> '2'
p Hash[ary] # => {"a"=>"2", "b"=>"3"}
@param str デコード対象の文字列
@param enc エンコーディング
@raise ArgumentError str のフォーマットが不正である場合に発生します
@see URI.decode_www_form_component, URI.encode_www_form... -
URI
. decode _ www _ form _ component(str , enc=Encoding :: UTF _ 8) -> String (6220.0) -
URL-encoded form data の文字列の各コンポーネント をデコードした文字列を返します。
...URL-encoded form data の文字列の各コンポーネント
をデコードした文字列を返します。
通常は URI.decode_www_form を使うほうがよいでしょう。
"+" という文字は空白文字にデコードします。
enc で指定したエンコーディングの文字......ンスマニュアル')
# => "Ruby+%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB"
p URI.decode_www_form_component(enc)
# => "Ruby リファレンスマニュアル"
//}
@param str デコード対象の文字列
@param enc エンコーディン... -
URI
. decode(str) -> String (114.0) -
URI 文字列をデコードした文字列を返します。
...文字列をデコードした文字列を返します。
このメソッドは obsolete です。
代わりに
CGI.unescape,
URI.decode_www_form,
URI.decode_www_form_component
などの使用を検討してください。
例:
require 'uri'
puts URI.unescape('http://images.google.co.jp/image... -
URI
. unescape(str) -> String (114.0) -
URI 文字列をデコードした文字列を返します。
...文字列をデコードした文字列を返します。
このメソッドは obsolete です。
代わりに
CGI.unescape,
URI.decode_www_form,
URI.decode_www_form_component
などの使用を検討してください。
例:
require 'uri'
puts URI.unescape('http://images.google.co.jp/image... -
URI
. encode _ www _ form(enum , enc=nil) -> String (107.0) -
enum から URL-encoded form data を生成します。
...されています。
@param enum エンコードするデータ列([key, value] という形のデータの列)
@param enc 指定された場合、パーセントエンコーディングする前に、このエンコーディングに変換
@see URI.encode_www_form_component, URI.decode_www_form... -
URI
. encode _ www _ form _ component(str , enc=nil) -> String (107.0) -
文字列を URL-encoded form data の1コンポーネント としてエンコードした文字列を返します。
...%83%B3%E3%82%B9%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB"
//}
@param str エンコードする文字列
@param enc 指定された場合、パーセントエンコーディングする前に、strをこのエンコーディングに変換
@see URI.decode_www_form_component, URI.encode_www_form... -
NEWS for Ruby 2
. 1 . 0 (54.0) -
NEWS for Ruby 2.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...k_getres
* String
* "literal".freeze は同じオブジェクトを返すように最適化されました。
* 追加: String#scrub, String#scrub! 不正なバイト列を検証して修正します。
古いバージョンのRubyと一緒に使いたいときは string-scrub gem......を使います。
* Symbol
* 全てのシンボルは freeze されるようになりました
* pack/unpack (Array/String)
* プラットフォームが対応していれば Q! と q! は long long 型を表します
* toplevel
* main.using はもはや実験的な機能では......* 非互換: Set#to_set はコピーを生成して返す代わりに self を返すようになりました
* uri
* 非互換: URI.decode_www_form は現在の WHATWG による URL 標準に従います。
文字列エンコーディングを指定するために、エンコーデ...