最速Rubyリファレンスマニュアル検索!
すべて(2)
1.9.2(1)
1.9.3(1)
2件ヒット
[1-2件を表示]
(0.008秒)
トップページ
>
クラス:
Encoding::Converter
>
:replacement=
ライブラリ
ビルトイン
(2)
検索結果
先頭1件
Encoding
::
Converter
#
replacement=(string)
Encoding
::
Converter
#
replacement=(string)
(18107)
1.9.2
1.9.3
インスタンスメソッド
置換文字を設定します。
...
置換文字を設定します。
@param string 変換器に設定する置換文字
ec =
Encoding::Converter
.new("utf-8", "us-ascii", :undef => :replace)
ec.
replacement =
"<undef>"
p ec.convert("a \u3042 b") #=> "a <undef> b"
...