Export to Excel with UTF-8 encoding [message #1463768] |
Thu, 06 November 2014 17:40  |
Eclipse User |
|
|
|
Hi,
I'm using the following command to export the current table to a excel file:
final ExportCommand cmd = new ExportCommand(natTable.getConfigRegistry(), natTable.getShell());
natTable.doCommand(cmd);
This works all fine, but the problem is that when I'm going to open the excel file all my special characters won't be displayed correctly which is very annoying.
I just opened the file with a text editor and I've found the following line:
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Excel.Sheet>
When I manually change the charset from windows-1252 to UTF-8 everything works fine but I cannot expect that the user has to manually change this in order to correctly open the excel file, so my question is can I somehow change the encoding used by Nattable?
Thanks in advance for your help.
Best regards,
Thomas
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05265 seconds