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
Post a Comment