Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

RE: [iText-questions] About "Single Quote" characters

Paulo Soares

2005-08-16


If it's not in ASCII it won't work in HKscs-B5-H.

> -----Original Message-----
> From: Philip Newton [mailto:philip.newton@(protected)]
> Sent: Tuesday, August 16, 2005 2:42 PM
> To: Paulo Soares
> Cc: Angus Lee; itext-questions@(protected)
> Subject: Re: [iText-questions] About "Single Quote" characters
>
> Or if it's not an apostrophe ' but a single quote ', perhaps
> dataString.getBytes("windows-1252"), if that's what you wrote in --
> since ' is not in iso-8859-1.
>
> --Ph.
>
> On 8/16/05, Paulo Soares <psoares@(protected):
> > Try with dataString.getBytes("iso-8859-1").
> >
> > ----- Original Message -----
> > From: "Angus Lee" <angus@(protected)>
> > To: <itext-questions@(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 : angus@(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
> > iText-questions@(protected)
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
>
>
> --
> Philip Newton <philip.newton@(protected)>
>


-------------------------------------------------------
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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.