I'm not surprised. PDF uses an explicit encoding when converting from string to byte[] whereas RTF just calls String.getBytes() and uses whatever encoding the machine has. This works well with "normal" machines but not when the default machine encoding is ebcdic.
Paulo ----- Original Message ----- From: "ek1975" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, August 05, 2008 10:05 PM Subject: [iText-questions] RTF/iText on the mainframe We have been successfully creating PDFs on the mainframe. Now we want to create an RTF file. We tried executing the HelloWord rtf program using iText on Windows and it ran successfully. We migrated the same program to the mainframe and compiled it there and we executed it. It executed without abending, but the RTF file it produces isn't readable. It's simply a bunch of junk characters. Our iText jar file version is 2.0.4 & JVM 1.4.2 on z/9 Is there something we have to do different for the mainframe? any specific encoding scheme or something like that? Thanks for your time. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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
