Hi guys,
I wanna ask a question about file streaming that I hope I find an
answer
when creating a txt file and write data to it, I found that it is
"ANSI" encoded by default.Even if I write a "Unicode" stream.
like that:
File EMAC=new File("D:\\test\\License.txt"); // License.txt initially
is not exist, so it is created at this step
FileOutputStream fos = new FileOutputStream(EMAC);
Writer out = new OutputStreamWriter(fos, "UNICODE");
so the questionis how to create a text file that is "Unicode" encoded
by default via Java instead of changing the encoding of the file
manually??
thanks in advance
Regards,
Usama
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---