class XSD::IconvCharset

Public Class Methods

safe_iconv(to, from, str) click to toggle source
# File lib/xsd/iconvcharset.rb, line 17
def self.safe_iconv(to, from, str)
  str.encode(to, from, :invalid => :replace, :undef => :replace, :replace => '?')
end