EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Encoding TElXMLSigner utf-8

Posted: 01/26/2011 12:19:48
by Pedro Salgado (Standard support level)
Joined: 10/18/2010
Posts: 9

Hi ,

I'm signing a SOAP message what is encoded to "utf-8";
after "Signer.Save(SigNode);" , I can see
"SigNode.OuterXml" is encoded to "utf-16"

I don't know whether this can give any trouble.

How can I change signature to "utf-8" ?

Many thanks.

Best Regards.
Posted: 01/26/2011 13:43:38
by Dmytro Bogatskyy (Team)

You can save an xml document in any encoding you want. While signing/verification data is converted internally to utf-8 encoding.
If you want to store/send signatures independently you should create detached signature or make sure that exclusive canonicalization is used. And using of OuterXml/InnerXml properties that returns unicode string is okay. Then to convert data from utf-16 to utf-8 you can use standard functions or for example ConvertToUTF8String method from SBUtils unit.



Topic viewed 769 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!