Might I found a solution.
Application know user locale(charmap/charset etc.).
When application create xmldsig xml file should be in user locale. Sample: 1.) LANG=fr_FR, charmap ISO-8859-1 <?xml version="1.0" encoding="ISO-8859-1"?> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> <SignedInfo> ......
In method "xmlSecTransformCtxExecute" from "transforms.c" we know document encoding and url.
Before to xmlSecTransformCtxUriExecute(...) when encoding is not NULL(is it posible?) or UTF-8 we can convert ctx->url from UTF-8 to "document encoding", to replace temporary ctx->url with new string and to call xmlSecTransformCtxUriExecute.
2.) LANG=fr_FR, charmap UTF-8, xmldsig document is in UTF-8
I tested n this environment without any changes in xmlsec - its work as expected on linux (file "modÃle.txt" is in UTF-8 encoding).
3.) On windows application should create xmldsig document in CPNNNN charset This is not tested.
What about proposed solutions (described above changes in "xmlSecTransformCtxExecute" ) ?
_______________________________________________ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec