The code that can reproduce the bug is attached.

-----Original Message-----
From: 1T3XT info [mailto:i...@1t3xt.info] 
Sent: 2009年2月4日 16:58
To: Post all your questions about iText here
Subject: Re: [iText-questions] iText bug on PdfString encoding

Yu Chen wrote:
> In com.lowagie.text.pdf.PdfString.getBytes( ) method, iText first checks 
> if the characters in a string are contained in PdfDocEncoding character 
> set, if so, iText will not use the specified encoding but 
> TEXT_PDFDOCENCODING. This will cause applying wrong encoding to some 
> Unicode characters.
> 
> e.g. U+00A0, which is 160 in dec, will be treated as ‘�’, because 160 is 
> ‘�’ in PdfDocEncoding character set.

I don't understand the question, please provide an example that 
visualizes the alleged bug.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Attachment: Sample.java
Description: Sample.java

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to