If you only use ASCII the encoding "ISO-8859-1" will work. In the next release you'll be able to register custom encodings used by iText. Cp437 will be available by default.
Best Regards,
Paulo Soares
-----Original Message-----
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of wang yun
Sent: Tuesday, December 02, 2003 23:03
To: [EMAIL PROTECTED]
Subject: [iText-questions] pdf417_barcode.java
Dear Support,
I am using VJ+ 6.0 to run pdf417_barcode.java
But, I have problem for the coding. For Microsoft, is
there other coding name to replace cp347?
Thanks,
yun
/////////////////////////////////////
// Code in the pdf417_barcode
this.text = s.getBytes("Cp437");
//////////////////////////////////////////
//Error message
C:\wanyun\Learning\iText126\VJ>Project2.exe 2 2
java.io.UnsupportedEncodingException: Cp437 [Could not
load class: sun.io.CharTo
ByteCp437]
at sun/io/CharToByteConverter.getConverter
(CharToByteConverter.java)
at java/lang/String.getBytes (String.java)
at com/lowagie/text/pdf/BarcodePDF417.setText
(BarcodePDF417.java:915)
at Class1.main (Class1.java:21)
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions