Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jakarta POI failed to read double bytes

Status
Not open for further replies.

stanley1610

Programmer
Mar 22, 2004
42
HK
I have an Excel files consisting of some Traditional Chinese characters and
normal alphabets. When I use HSSFCell::getStringCellValue() to read some Chinese
characters, it returns question marks.

e.g. The cell contains "How are you ???"
The returned value will be "How are you ???"

I also try to add HSSFCell::setEncoding(HSSFCell.ENCODING_UTF_16) before reading
the cell, but the problem still occurs.

Please kindly advise. Thanks a lot.
 
I have an Excel files consisting of some Traditional Chinese characters and
normal alphabets. When I use HSSFCell::getStringCellValue() to read some Chinese
characters, it returns question marks.

e.g. The cell contains "How are you 你好嗎"
The returned value will be "How are you ???"

I also try to add HSSFCell::setEncoding(HSSFCell.ENCODING_UTF_16) before reading
the cell, but the problem still occurs.

Please kindly advise. Thanks a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top