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