RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Why the CSV standard library is broken (Part II) - The Wonders of CSV Formats

Hello, I’ve written a follow-up on why the CSV standard library is broken, broken, broken (and how to fix it). Let’s have a look at the wonders of CSV formats / dialects such as MYSQL CSV export or PostgreSQL CSV or TEXT export. In a nutshell - the standard CSV parser is a (simplistic) kludge using string.split() and, thus, needs to get replaced with a “real” parser that can handle more “edge” cases and formats. Questions and comments welcome. Cheers. Prost. PS: If want to see other (more) CSV formats / dialects pre-configured and supported “out-of-the-box” in the new csv reader, please tell.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in