From: "Mehr, Assaph (Assaph)" Date: 2004-03-17T10:54:49+09:00 Subject: Re: Iconv::IllegalSequence raised Use "utf-8"... :) -----Original Message----- From: Zachary P. Landau [mailto:kapheine@hypa.net] Sent: Wednesday, 17 March 2004 12:50 PM To: ruby-talk ML Subject: Iconv::IllegalSequence raised 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