instance method Encoding::Converter#replacement=
replacement=(string)
-
置換文字を設定します。
- [PARAM] string:
- 変換器に設定する置換文字
ec = Encoding::Converter.new("utf-8", "us-ascii", :undef => :replace) ec.replacement = "<undef>" p ec.convert("a \u3042 b") #=> "a <undef> b"
class Encoding::Converter