Top.Mail.Ru
July 30th, 2004 - Java developers — LiveJournal
? ?

Java developers

July 30th, 2004
 

02:08 pm - Imagecyb3rj - FileWriter vs FileOutputStream

This might be old hat to some of you here, but I recently learned a costly (time) lesson.

FileWriter writes out characters in the default character encoding of the machine doing the processing.
FileOutputStream writes in bytes.

If you don't want your output "converted" to the default character encoding of the machine doing the processing, use FileOutputStream.
Powered by LiveJournal.com
Image