Try with dataString.getBytes("iso-8859-1").
----- Original Message -----
From: "Angus Lee" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, August 16, 2005 4:51 AM
Subject: [iText-questions] About "Single Quote" characters
Dear Sir/Madam,
I'm not sure is this the right contact email for my questions. Just have
a try and hope that someone can help me.
I used iText package for nearly 2 years. An year ago, i've changed to
use PdfEncodings so that i can print some Hong Kong Chinese characters. The
code for encoding is as the following:
String dataString = "Hello. I'm a boy".
PdfEncodings.loadCmap("HKscs-B5-H", PdfEncodings.CRLF_CID_NEWLINE);
dataString = PdfEncodings.convertCmap("HKscs-B5-H",
dataString.getBytes());
However, when i print the encoded text with showText method in
PdfContentByte. The single quote character is gone.
Output: "Hello. I m a boy".
Is this the Cmap mapping missing? Or is there any method to encode the
single quote character before the loadCmap ? It have no problem in printing
#%" ... etc.
Thank You.
Best Regards,
Angus Lee
System Analyst
employEasy Limited
Unit C & D, 9/F Vulcan House,
21-23 Leighton Road, Hong Kong.
TEL : 852 - 2803 5077
FAX : 852 - 2803 5377
Email : [EMAIL PROTECTED]
Web : http://www.employEasy.com
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions