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