i have a csv file that i save it with utf-8 encoding like below: reference
FileOutputStream fileOut =fileOut = new FileOutputStream(file, true);
/*utf-8 setting*/
fileOut.write(0xef);
fileOut.write(0xbb);
fileOut.write(0xbf);
/*append another string*/
PrintWriter printWriter = new PrintWriter(fileOut);
printWriter.write(...);
i write string to file and it work correctly with UTF-8
encodeing.
my question is :
- anyone know what is this bytes?
- how can change it to another encoding like
cp1256
? - is a list that provide all encoding for that?
UPDATE: assume that i save huge string data that create in pagination and i can not store this size of data in one time.
thanks