Class: XSD::IconvCharset

Inherits:
Object
  • Object
show all
Defined in:
lib/soap4r_19_patch/xsd/iconvcharset.rb

Class Method Summary collapse

Class Method Details

.safe_iconv(to, from, str) ⇒ Object



20
21
22
# File 'lib/soap4r_19_patch/xsd/iconvcharset.rb', line 20

def self.safe_iconv(to, from, str)
  str.encode(to, from, :invalid => :replace, :undef => :replace, :replace => '?')
end