character encoding - how to read/write text of specified charset in java -


i have scenario have read/write data from/into csv files. understand csv can read/written text file.

what want know is, how handle charset? eg if piece of text has read chinese language csv file, how read it?

try following:

bufferedreader br = new bufferedreader(new inputstreamreader(myfile.getinputstream(), "iso-8859-15")); // give desired charset here 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -