Class: XSD::IconvCharset

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

Class Method Summary collapse

Class Method Details

.safe_iconv(to, from, str) ⇒ Object



17
18
19
# File 'lib/xsd/iconvcharset.rb', line 17

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