    # File lib/gettext/core_ext/iconv.rb, line 66
              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