THANK YOU
-----Original Message-----
From: Tobias Meyer [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 08, 2006 11:28 AM
To: 'POI Users List'
Subject: RE: hebrew (or UTF) text
You should use cell.setEncoding(HSSFCell.ENCODING_UTF_16).
HSSFCell.ENCODING_COMPRESSED_UNICODE is - as far as I understood - UTF16
with the high byte chopped off and the name of the field is completely
misleading...
The Data should not be in any encoding. ( i.e. not any special encoding,
java uses UTF-16 for all internal purposes, and that should propably not
be
changed)
The content-disposition charset should not make any difference - I would
completely omit it...
(i.e.
response.setHeader("Content-disposition","attachment;filename=Book.xls")
)
Hth,
Tobias
> -----Original Message-----
> From: Tali Tsarfati [mailto:[EMAIL PROTECTED]
> Sent: Sunday, January 08, 2006 9:27 AM
> To: POI Users List
> Subject: hebrew (or UTF) text
>
>
> Hi,
>
>
>
> I am trying to write text in Hebrew to HSSFCell. I get gibrish
>
>
>
> In what encoding should I write the data: UTF-8 / UTF-16 / Cp1255 /
> ISO8859_8 ?
>
> Should I use cell.setEncoding(HSSFCell.ENCODING_UTF_16) or
> cell.setEncoding(HSSFCell. ENCODING_COMPRESSED_UNICODE) ?
>
>
>
> What charset should I write in the header :
>
> response.setHeader("Content-disposition","attachment;
> filename=Book.xls;charset=??");
>
>
>
> Thanks, Tali
>
>
---------------------------------------------------------------------
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/
---------------------------------------------------------------------
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/