るりまサーチ (Ruby 3.2)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.166秒)
トップページ > クエリ:i[x] > クエリ:l[x] > モジュール:ERB::Util[x] > バージョン:3.2[x] > クエリ:url_encode[x]

別のキーワード

  1. _builtin $-l
  2. kernel $-l
  3. matrix l
  4. lupdecomposition l
  5. $-l _builtin

ライブラリ

検索結果

ERB::Util.#url_encode(s) -> String (72925.0)

文字列 s を URLエンコードした文字列を返します。

...列を返します(CGI.escapeとほぼ同じです)。

@param s URLエンコードを行う文字列

//emlist[例][ruby]{
require "erb"
include ERB::Util

puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
# Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
//...

ERB::Util.#u(s) -> String (18325.0)

文字列 s を URLエンコードした文字列を返します。

...列を返します(CGI.escapeとほぼ同じです)。

@param s URLエンコードを行う文字列

//emlist[例][ruby]{
require "erb"
include ERB::Util

puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
# Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
//...