Hi All,
I am unable to write the file in UTF-8 by using the OutputStreamWriter but when i used the "unicode" every thing working fine.
Code :
BufferedWriter oBufferedWriter = new BufferedWriter(new OutputStreamWriter(new
FileOutputStream(theResultFile.toString(), true), "UTF-8"));
oBufferedWriter.write(str)
The
String which is specified above only contains the Numeric value and English Characters like this : str = "10000000001 E01"
When code is executed and i opened the file in notepad/textpad it shows the file is in the ANSI
But when i used the "unicode" instead of UTF-8 everything works fine . Means when i open the file in Notepad/TextPad it shows file is in Unicode
Can anyone help Why it is not possible to write the file in UTF-8
Thanks in advance for your prompt