ec.replacement = string
Instance Public methods
Sets the replacement string.
1 2 3 | ec = Encoding::Converter. new ( "utf-8" , "us-ascii" , :undef => :replace ) ec.replacement = "<undef>" p ec.convert( "a \u3042 b" ) #=> "a <undef> b" |
Please login to continue.