Hi,

 

I encountered some difference in behaviour between the encoding in
Windows and OS/400.

 

I use iText for filling in pdf documents by means of acrofields.

 

My proof of concept works fine on Windows, but when I transfer it to
iseries it creates the pdf but no fields are filled.

 

I was able to pinpoint the problem, the acrofieldnames contains strange
characters resulting in unable to find the fields in
"Acrofields.setField(name, value)"

 

Ex. Windows

 "form1[0].#subform[0].CustomerContact[0]"

 

Ex. iSeries

"?form1[0].?#subform[0].?CustomerContact[0]"

 

When I checked de formatting of the fieldnames in
PdfString.toUnicodeString() I found that the encoding conversion was
done for "UnicodeBig" (Constant in PdfObjct TEXT_UNICODE).

 

I wrote a small test program and found out that as well on Windows and
on iSeries the conversion worked fine with "Unicode" instead of
"UnicodeBig".

 

My question is, is there a specific reason that the Unicode encoding
conversion must be done with UnicodeBig, or can it just be Unicode?

 

Thanks in advance,

 

Bernard Van der Auwera

Cosmos NV.

 

PS. The system properties concerning the encoding are:

 

                                                           Windows
iSeries

 

Sun.cpu.endian                                    little
big

Sun.io.unicode.encoding                       UnicodeLittle
UnicodeBig

 

I changed the properties on iSeries to those of Windows but no change in
behaviour.

 

 

 

 



DISCLAIMER:
This e-mail may contain information which is privileged or confidential. If you 
received this e-mail in error, please notify us immediately by e-mail or 
telephone and delete the e-mail without copying or disclosing its contents to 
any other person.
------------------------------------------------------------------------------
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