From: Niklas Baumstark Date: 2008-08-04T20:37:33+09:00 Subject: Re: Odd CSV behavior --Sig_/65AO+fOMFuZKL6AzvVWAXkX Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, Binh Ly wrote: > I download a file, in CSV format, from a website and when I try to parse > with CSV and Faster CSV I get the following error. >=20 > /usr/local/lib/ruby/1.8/csv.rb:639:in `get_row': CSV::IllegalFormatError > (CSV::IllegalFormatError) > from /usr/local/lib/ruby/1.8/csv.rb:556:in `each' > from /usr/local/lib/ruby/1.8/csv.rb:531:in `parse' > from /usr/local/lib/ruby/1.8/csv.rb:311:in `open_reader' > from /usr/local/lib/ruby/1.8/csv.rb:85:in `open' >=20 > But if I open the CSV file in TextMate, select all of the contents, > paste and save that content into a new CSV file, created with TextMate, > the CSV parser can process it just fine. seems like a charset issue. maybe you should compare the two files (origina= l and after copying with textmate) regarding character encoding and line en= dings. maybe even using a diff tool. this should help you figure out the ex= act problem, if you really need to know it.=20 Greetings, Niklas --Sig_/65AO+fOMFuZKL6AzvVWAXkX Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIlupJsaTI7fa8xRURAoL4AKCnurixVxsBbjcl+IMxjs9XJSF9+wCfUavC PlJ+c9wvcqMVhC3aE5smnfw= =BKIz -----END PGP SIGNATURE----- --Sig_/65AO+fOMFuZKL6AzvVWAXkX--