Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XML encoding - specific to XMLSignature

843834Apr 22 2005
I have an XML document in 8859-2 (Latin-2) with some specific Latin chars in it ( n caron ) etc.

I have verified in HEX that the codes are correct for this character set (xF1)

I am trying to create and then verify an XMLSignature for this file (Windows)
In the create I read the source document and specify the encoding

Reader reader = new InputStreamReader(new FileInputStream(poFile),"iso-8859-2");
Document doc = db.parse(new InputSource(reader));

I then go through the steps to sign the document and write the signed file.
Even if I turn around and in the same class create a new DOC based on the signed file (retrieved from a byteOutputStream) I still cannot verify the signature.
If I do this with ASCII all 7-bit it works fine. As soon as I introduce high-characters is fails.



Can anyone help?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 20 2005
Added on Apr 22 2005
0 comments
40 views