Hi, I am working on an app that reads a .csv file and loads each cell as
a row into a database. However much I discourage users to copy and past
curly quotes from MS Word into their .csv, I need to build in a way to
handle this.

Using the create method, my generated insert statement will include
values like this for cells with questionable strings:

E'Dido’s Woman'

And the E' means that there should be an escaped character in here, but
Ruby doesn't escape the character.

Any idea how to fix this? I have tried using the Iconv library to
convert, but that doesn't solve the escaped character issue.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to