|
def initialize real_IO, encoding="iso-8859-1"
@output = real_IO
case encoding
when /^iso-8859-1$/i
instance_eval "alias :encode :iso_8859_1"
when /^utf-16$/i
instance_eval 'alias :encode :utf_16'
when /^unile$/i
instance_eval 'alias :encode :unile'
end
end
|