Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unicode aware CSV parser in Java

I'm looking for Java implementation of CSV (comma separated values) parser with proper handling of Unicode data, e.g. UTF-8 CSV files with Chinese text. I suppose such a parser should internally use code point related methods while iterating, comparing etc. Apache 2 license or similar would work the best.

like image 912
Igor Romanov Avatar asked Dec 09 '25 22:12

Igor Romanov


1 Answers

I don't believe in reinventing the wheel. So I do not want to write my own parser and go through the same headaches someone else did.

I personally like the CSV Parser from Ostermiller. They also have a Maven Repository if interested.


You can also check out OpenCSV. There is a Stack Overflow question already about parsing unicode.

like image 198
Ascalonian Avatar answered Dec 12 '25 11:12

Ascalonian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!