Hello, dear all, I am having some problems dealding with
Japanese Characters. I set up a cell value as this:
cell.setCellValue("some Japanese characters go here");

And I end up with wrong values in the generated XLS file.

Then I looked up the POI API and souce code, and did the follow:

cell.setEncoding((short)1);//Using UTF_16
cell.setCellValue("some Japanese characters go here");

Then it worked fine. But I am not sure if this is the
right thing to do. Doesn't the POI/Excel supports something
like setting up the encoding using Shift_JS, ISO-8859-1
these stuff? Or I only have a choice between
ENCODING_COMPRESSED_UNICODE and or ENCODING_UTF_16?
And the thing I did was just right?

Any hint will be highly appreciated.

Best,

Xuemin


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/



Reply via email to