CSV doesn't use backslash escaping. http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm
"This is text with a ""quoted"" string" -Yonik On Jan 2, 2008 8:21 AM, Michael Lackhoff <[EMAIL PROTECTED]> wrote: > I use UpdateCSV to feed my data into SOLR and it works very well. The > only thing I don't understand is how to properly escape the encapsulator > and the backslash. > An example with the default encapsulator ("): > "This is a text with a \"quote\"" > "This gives one \ backslash" > "This gives two backslashes before the \\\"quote\"" > "This gives an error \\"quote\"" > > So what if I want only one backslash before the quote, e.g. the > unescaped data looks like this: > Text with \"funny characters > (a real backslash before a real quote not an escaped quote) > > I know this isn't common and perhaps it would be possible to find an > encapsulator that will be very, very unlikely to be found in the data > but you can never be sure. > So is there a way to correctly escape or otherwise encode all possible > combinations of special characters? > > -Michael > >