How to read Outlook CSV files

27 views
Skip to first unread message

Jeppe Fjord

unread,
Sep 17, 2008, 6:35:50 AM9/17/08
to CSVChat
Hello,

I am using the java com.csvreader.CsvReader lib.

How do I read Outlook CSV files with double quotes, i.e.:

"Name","Company","Mobile Phone","E-mail"

CsvReader reader = new CsvReader( filename , ',',
java.nio.charset.Charset.forName("ISO-8859-1") );
...

Then how do I indicate that there is double quotes around (") each
fields?

Thanks in advance

shriop

unread,
Sep 17, 2008, 9:49:53 AM9/17/08
to CSVChat
It has them specified by default but if you had to change it to
something else or verify them then you'd use setTextQualifier/
getTextQualifier/setUseTextQualifier/getUsetTextQualifer,
http://javacsv.sourceforge.net/com/csvreader/CsvReader.html .

Bruce Dunwiddie
Reply all
Reply to author
Forward
0 new messages