Flowdock
method

replacement=

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Converter
replacement=(p1) public

Sets the replacement string.

ec = Encoding::Converter.new("utf-8", "us-ascii", :undef => :replace)
ec.replacement = "<undef>"
p ec.convert("a \u3042 b")      #=> "a <undef> b"
Show source
Register or log in to add new notes.