Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ruby-qstat.rb
Instance Method Summary collapse
Instance Method Details
#force_convert_to(from, to = nil) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/ruby-qstat.rb', line 9 def force_convert_to(from, to=nil) if to.nil? to = from end self.encode!("UTF-16BE", from, :invalid => :replace, :undef => :replace, :replace => '?') self.encode!(to) end |