Hi,

If you download the latest release POI Release pre2 from the site, you can
do something like -
  HSSFSheet mFirstSheet = mWorkbook.createSheet();
  mWorkbook.setSheetName(0, "SheetName", HSSFCell.ENCODING_UTF_16);

where mWorkBook is an instance of HSSFWorkBook.
This will take care of setting the sheet names in any languages.

Regards,
Janarthan S


----- Original Message ----- 
From: "hotmail" <[EMAIL PROTECTED]>
To: "poi" <[EMAIL PROTECTED]>
Sent: Monday, July 14, 2003 12:19 PM
Subject: how can set the Excel sheet name in some languangs


> Emergency!!!
> How can set the Excel sheet name in some languages which are not English,
such as Japanese, Chinese.
> HSSFWorkbook.setSheetName(int i, String str) doesn't work correctly with
Chinese.
> HSSFWorkbook.createSheet(short s, String str) does either.
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to