Does the following code works?

String s = "hello";
byte b[] = s.getBytes("ISO-8859-1");

Can you try your code with the iText version at
http://www.geocities.com/itextpdf?

Best Regards,
Paulo Soares

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, July 17, 2002 15:50
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Strange error while generating PDF
> document
> 
> 
> 
> 
> Hi, all
> 
> this is what I get while trying to generate PDF document on AS/400.
> 
> Doesn't happen all the time and doesn't happen at the same place. Any
> ideas?
> 
> java.lang.UnknownError
>       sun/io/CharToByteISO8859_1.convert([CII[BII)I+236
> (CharToByteISO8859_1.java:103)
>       sun/io/CharToByteConverter.convertAny([CII[BII)I+27
> (CharToByteConverter.java:142)
>       java/lang/String.getBytes(Lsun/io/CharToByteConverter;)[B+40
> (String.java:629)
>       java/lang/String.getBytes(Ljava/lang/String;)[B+5 (String.java:665)
>       com/lowagie/text/pdf/PdfObject.<init>(ILjava/lang/String;)V+0 (:??)
>       com/lowagie/text/pdf/PdfString.<init>(Ljava/lang/String;)V+0 (:??)
> 
> com/lowagie/text/pdf/PdfChunk.<init>(Lcom/lowagie/text/Chunk;Lcom/lowagie/
> text/pdf/PdfAction;)V+0
> 
> (:??)
>       com/lowagie/text/pdf/PdfDocument.add(Lcom/lowagie/text/Element;)Z+0
> (:??)
>  
> com/lowagie/text/Phrase.process(Lcom/lowagie/text/ElementListener;)Z+0
> (:??)
>       com/lowagie/text/pdf/PdfDocument.add(Lcom/lowagie/text/Element;)Z+0
> (:??)
>       com/lowagie/text/Document.add(Lcom/lowagie/text/Element;)Z+0 (:??)
>       Inv2PDF.createPDF(Ljava/sql/ResultSet;Ljava/lang/String;ZZZI)V+1413
> (Inv2PDF.java:472)
>       Inv2PDF.main([Ljava/lang/String;)V+146 (Inv2PDF.java:91)
> Java program completed with exit code 1
> 
> thks,
> 
> Vanja
> 
> 
> 
> 
> 
> ********************
> Copyright 2002 ADC Telecommunications, Inc. This communication is
> the property of ADC and may contain information confidential and/or
> privileged.  This communication has been transmitted for the exclusive
> use of the intended recipient.  If you are not the intended recipient,
> please send a copy of it with the title "Received in error" to
> [EMAIL PROTECTED] and then delete the email and destroy
> any copies of it.  You may not otherwise distribute, copy, or use this
> communication or the information in it in any manner.  Please contact
> ADC at  +1 780 431-6565 if you need assistance. Thank you for your
> cooperation.
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to