From: Alex Young Date: 2007-08-17T00:39:48+09:00 Subject: Re: Double quote escape character 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. You don't need to quote your output - FasterCSV quotes it iff necessary. Try sticking a '"' in the middle of your string and see what it does. -- Alex