I have found it sorry for the question it was en error
in the code ...

"Skondras P." wrote:

> Hi
> i want to put some greek chars in an xls file and works ok if i put them
> with encoding UTF_16 in the java code.
> But there is always a but
> When i read the string from the database which is utf-8 and try to put
> it in the xls file
> i get non-readable chars.
> I try also the compressed_unicode no luck
> the code is like this
>                 cell1 = row1.createCell((short)5);
>                 String dest=t1.getDestCategory() // String from the
> database
>
> cell.setEncoding(org.apache.poi.hssf.usermodel.HSSFCell.ENCODING_UTF_16);
>
>                 cell1.setCellValue(t1.getDestCategory());
>
> Any ideas suggestions
>
>   ------------------------------------------------------------------------
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to