Yes, I do :-) Excel shows the Japanese fonts. However, when I am trying to do
currentCell.setEncoding(HSSFCell.ENCODING_UTF_16);
japanNames[i] =
currentCell.getRichStringCellValue().getString();
the String does not show the Fonts but rather "??????????????".
Do I maybe need extra language support for Java?
Thanks a bunch.
Kai
Zitat von Anthony Andrews <[EMAIL PROTECTED]>:
This may be a silly question and I am assuming that you are running
Windows but do you have the relevant language support installed on
your computer?
--- On Sat, 10/18/08, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Subject: Get Japanese text HSSFWorkbook
To: [email protected]
Date: Saturday, October 18, 2008, 2:50 PM
Hey there,
I have a problem reading Japanese text from an Excel sheet in order to
save the content read into a database. How do I read the Japanese text
into a String using cell.getRichTextValue()? Here is my code:
HSSFRow japanNamesRow = sheet.getRow(i + 1);
HSSFCell currentCell = japanNamesRow.getCell(7);
currentCell.setEncoding(HSSFCell.ENCODING_UTF_16);
japanNames[i] =
currentCell.getRichStringCellValue().getString();
Thanks for your help and all the best
Kai
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]