From: Glen Holcomb Date: 2007-08-17T00:34:18+09:00 Subject: Re: Double quote escape character ------=_Part_187785_5947450.1187278457811 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline This works in IRB: '"' + string + '"' Probably not the most elegant solution though. On 8/16/07, Alvaro Perez wrote: > > Hi all, > > I'm trying to export a string to a excel file using fastercsv and I > wanted it double quote to make it safer. So i tried to use the escape > character \" to insert double quotes but it doesn't work: > > - string produces string with no quotes in the file > > - "\"" << string << "\"" produces """string""" > > - "\"" + string + "\"" produces """string""" > > I have no idea on how to solve this. > > > Thanks for the help, > Alvaro. > -- > Posted via http://www.ruby-forum.com/. > > -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_187785_5947450.1187278457811--