Paulo Soares-3 wrote:
> 
>  
> That looks like UTF-8 decoded with ISO8819-1. Does your Java String really
> has the right characters?
> 
> 

Yeah! It was that. My String already was in ISO-8859-1 and Tomcat probably
had problems to change that to UTF-8.

byte textLatin[] = text.getBytes("ISO-8859-1");
String textUTF = new String(textUTF, "UTF-8");

And it works.

Thank you very much.

-- 
View this message in context: 
http://www.nabble.com/RTF-%2B-Portuguese-%2B-Character-Encoding-%28Latin-1--ISO-8859-1%29-tp22350643p22353570.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to