conv (Iconv)

    # File lib/gettext/core_ext/iconv.rb, line 68
              def self.conv(to, from, str)
                begin
                  GLib.convert(str, to, from)
                rescue GLib::ConvertError => e
                  case e.code
                  when GLib::ConvertError::NO_CONVERSION
                    raise InvalidEncoding.new(str)
                  when GLib::ConvertError::ILLEGAL_SEQUENCE
                    raise IllegalSequence.new(str)
                  else
                    raise InvalidCharacter.new(str)
                  end
                end
              end