Quantcast
Channel: SCN: Message List - SAP NetWeaver Technology Platform
Viewing all articles
Browse latest Browse all 4415

Re: Excel Download (chinese Charaters) in Webdynpro Java

$
0
0

Hi

 

If you are using the Apache POI please refer the following:

 

"Sheets are created by calling createSheet() from an existing instance of Workbook, the created sheet is automatically added in sequence to the workbook. Sheets do not in themselves have a sheet name (the tab at the bottom); you set the name associated with a sheet by calling Workbook.setSheetName(sheetindex,"SheetName",encoding). For HSSF, the name may be in 8bit format (HSSFWorkbook.ENCODING_COMPRESSED_UNICODE) or Unicode (HSSFWorkbook.ENCODING_UTF_16). Default encoding for HSSF is 8bit per char. For XSSF, the name is automatically handled as unicode."

Once you create a sheet with Unicode or UTF_16 it will work. Create the Workbook object by using the org.apache.poi.ss.usermodel.WorkbookFactory.

 

 

Rregards,

 

Swapnil


Viewing all articles
Browse latest Browse all 4415

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>