Actually the problem is that this isn't valid csv, at least according to the rfc and wikipedia page IIRC (am on a bus so can't check this at the moment). If there's a quote in the field, the whole field must be quoted and the quotes escaped '""', e.g. try:
"\"foo \"\"bar\"\" bar\"" <string-reader> csv Cheers, Phil Phil Dawes wrote: > Hi Slava, > > Ok - will check it out... > > Cheers, > > Phil > > Slava Pestov wrote: >> Hi Phil, >> >> Try parsing the following: >> >> "foo \"bar\" bar" <string-reader> csv >> >> Also perhaps lines starting with # should be ignored as comments? >> >> Slava >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Factor-talk mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
