java - Handling I/O on 16-bit characters -


this question has answer here:

which 1 used handle i/o on 16-bit unicode characters in java - fileinputstream/fileoutputstream or readers/writers? difference between them?

inputstreams provide raw bytes while readers provide chars.

you can wrap inputstream inputstreamreader interpretes bytes unicode characters according encoding define.

fileinputstream fis = new fileinputstream(..); bufferedreader in = new bufferedreader(new inputstreamreader(fis, "utf8")); 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -