XML encoding - specific to XMLSignature
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?