From: "Zachary P. Landau" Date: 2004-03-17T10:49:57+09:00 Subject: Iconv::IllegalSequence raised --VMt1DrMGOVs3KQwf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I'm having some problems with iconv. I'm trying to convert (as an example) http://www.atame.org/a/abel_velazquez/ from iso-8859-1 to utf8. If I use this on the command line: 'iconv -f iso-8859-1 -t utf8 index.html' it works fine. But the following code: require 'open-uri' require 'iconv' open("http://www.atame.org/a/abel_velazquez/") do |f| puts Iconv.conv("iso-8859-1", "utf8", f.read) end returns: iconv.rb:7:in `conv': "\341zquez\n "... (Iconv::IllegalSequence) I'm not sure why this would be. This is on ruby 1.8.1 (2004-02-06) [i686-linux-gnu] I had dblack try it and he got the same result. -- Zachary P. Landau GPG: gpg --recv-key 0x24E5AD99 | http://kapheine.hypa.net/kapheine.asc --VMt1DrMGOVs3KQwf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAV64DCwWyMCTlrZkRAh37AJ9Nk92VmSDBFhFmkikzmW0EKTHzGACfS0vJ ymXuS/1TarWGMN1qvzxgu8s= =TL6x -----END PGP SIGNATURE----- --VMt1DrMGOVs3KQwf--