IntelliJ Java IDE
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
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
 
IntelliJ Java IDE
 
subject: XML signature is invalid if the XML contains French character
 
Threads others viewed
encoding doubt
Need to add an invalid UTF-8 character
multiple language support in one XML
XML Validation
Invalid Character inside CDATA
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com