Situation: I've a data table which's is shown in jsp page with utf-8. There is no problem with it. When I export it to Excel,Non English values looks freaky.Exporting code:
public class DisplayExcelView extends ExcelView {
public String getMimeType() {
return "application/vnd.ms-excel; charset=utf-8"; //uses the Win-cp1256
}
}
It saves a xls file. When I open it with doubleclick
The file you are trying to open, blabla.xls is in different format by the file extension.blabla Do u want to open the file?
If I click yes; Non-english values looks freak.
But If I first open Excel 2007 and load DATA/From text (by importing .xls file),Excel shows a window where there is the selected charset is UTF-8. After selecting this, Non-English characters look perfect.
Isn't there a way to open the by double clicking on the .xls file and get correct non-english characters ?