This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML signature is invalid if the XML contains French character Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "XML signature is invalid if the XML contains French character " Watch "XML signature is invalid if the XML contains French character " New topic
Author

XML signature is invalid if the XML contains French character

Tsun Yu
Greenhorn

Joined: Nov 18, 2011
Posts: 1
Hi all,
Currently I am working on signing XML file.
The signature is valid if it contains only English.
However, if I included French characters in the file, the signature will be invalid.

I use XMLBean to create XML file and use UTF-8 to write the string into XML then sign it.
However, it does not work for me.
XMLString.newInstance().newValue(new String("préférence".getByte("UTF-8"), "UTF-8"));

Does anyone know how to solve the problem or there is any work around?

Thanks
Tsun
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: XML signature is invalid if the XML contains French character
 
Similar Threads
Need to add an invalid UTF-8 character
XML Validation
Invalid Character inside CDATA
encoding doubt
multiple language support in one XML