How to make CsvReader class support UTF-8 characters?

2,204 views
Skip to first unread message

Kunwar pathak

unread,
Apr 5, 2013, 10:42:25 PM4/5/13
to csv...@googlegroups.com
Hi, i am using javacsv.jar file for javacsvReader class. But, it does not support UTF-8 files.I think the problem is with this code in CsvReader.java:
 public CsvReader(String paramString, char paramChar)
    throws FileNotFoundException
  {
    this(paramString, paramChar, Charset.forName("ISO-8859-1"));
  }

Here ISO-8859-1 is written.So, donot know whether it supports UTF-8,but in forums it is written that it supports UTF-8.Can anyone please help regarding this?

shriop

unread,
Apr 6, 2013, 9:27:33 AM4/6/13
to csv...@googlegroups.com
You just have to use one of the constructor overloads that allows you to pass in the UTF-8 Charset, http://bit.ly/11Bchft .

Bruce Dunwiddie
Reply all
Reply to author
Forward
0 new messages