I have tab-separated values which I need to export as a text file using Java, to be opened in Microsoft Excel. The problem arises when the tab-separated values have Chinese characters.
I tried exporting the text file using UTF-8 but Excel is not able to interpret the characters. Then I opened the exported text file in Notepad and saved it as "Unicode" and it started showing the correct charters in Excel.
So can someone tell me what is the Notepad "Unicode" equivalent in Java?
My code is:
response.getOutputStream().write(reportHTML.getBytes("UTF-8"));
Where reportHTML has tab-separated values.
This is the text file with encoding as Unicode.