I have encoding problem with iText (http://www.lowagie.com/iText/). I load data from database and insert it as html to pdf with iText, for some reason my non-english (Finnish ä,ö etc) characters don't show up correctly. Following example shows how insert text to html:
text = "<p>" + data + "</p>";
HTMLWorker htmlWorker = new HTMLWorker(doc);
InputStream is = new ByteArrayInputStream(text.getBytes());
InputStreamReader isr = new InputStreamReader(is);
htmlWorker.parse(isr);
UPDATE: If have to add that it's working in my Windows Vista system, but not in Linux system.