I am by no means an expert but I would think that you do not need any extra language support for Java as it simply treats every character as Unicode. The only other aspect I can think of would be to experiment with different character encodings to see if that has any effect, after all there are only two others defined within the HSSFCell class.
Other than that, I cannot be of any help, sorry. --- On Sun, 10/19/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Subject: Re: Get Japanese text HSSFWorkbook To: "POI Users List" <[email protected]>, [EMAIL PROTECTED] Date: Sunday, October 19, 2008, 3:12 AM 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] __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
