Hi,
I am using Smart GWT 3.1Pro Edition (2013-12-17 nightly) and launching my application in Firefox 25.0.1 & IE 8
My Application work by fetching some cognos reports and displaying at frontEnd (developed in smartgwt).
My Application involves SmartGwt (frontEnd) + Jboss 7.1.1 (Application server) + Cognos (Reporting stuff)
For this I am using below Datasource .
<DataSource
ID="dataSourceName"
serverConstructor="classPath"
>
<!-- Dynamic - defined at runtime -->
<fields/>
</DataSource>
I am using below API to create a ListGridField for the Header value text from Cognos report.
ListGridField field = new ListGridField(String name, String title);
Initially content type was set to 'utf-8', then the problem was that when CSV file export was done file's encoding would be in UTF which when opened by Excel
spreadsheet appends "Â" before pound sign like "Value £" instead of "Value £". Later i changed the content type to iso-8859-1 at application and deployed .
Now my application is displaying the content of the Cognos report fine but while exporting the content to csv file, in the header section
when ever the pound(£) sign is encountered in the column, that column is exported as 'null' .
I am using exportData(dsRequest) API and not setting any ContentType while calling the API.
There are no Errors i found from server logs but i strongly believe it is an Encoding issue .
If i need to look for some other logs please guide me how can i get them.
Please let me know if any extra information is needed.
Thanks in advance
Sandeep
I am using Smart GWT 3.1Pro Edition (2013-12-17 nightly) and launching my application in Firefox 25.0.1 & IE 8
My Application work by fetching some cognos reports and displaying at frontEnd (developed in smartgwt).
My Application involves SmartGwt (frontEnd) + Jboss 7.1.1 (Application server) + Cognos (Reporting stuff)
For this I am using below Datasource .
<DataSource
ID="dataSourceName"
serverConstructor="classPath"
>
<!-- Dynamic - defined at runtime -->
<fields/>
</DataSource>
I am using below API to create a ListGridField for the Header value text from Cognos report.
ListGridField field = new ListGridField(String name, String title);
Initially content type was set to 'utf-8', then the problem was that when CSV file export was done file's encoding would be in UTF which when opened by Excel
spreadsheet appends "Â" before pound sign like "Value £" instead of "Value £". Later i changed the content type to iso-8859-1 at application and deployed .
Now my application is displaying the content of the Cognos report fine but while exporting the content to csv file, in the header section
when ever the pound(£) sign is encountered in the column, that column is exported as 'null' .
I am using exportData(dsRequest) API and not setting any ContentType while calling the API.
There are no Errors i found from server logs but i strongly believe it is an Encoding issue .
If i need to look for some other logs please guide me how can i get them.
Please let me know if any extra information is needed.
Thanks in advance
Sandeep