From: Fanshawe, A. (GF-X) <ale...@gf...> - 2006-10-03 10:50:49
|
Hi, appologies if this is old hat or not posted as expected, just = started with your user group.=20 I'm running=20 cryptix-pki-api.jar modified 28 March 2005, 19:57:42 cryptix-jce-api.jar modified 28 March 2005, 20:03:22 cryptix-jce-provider.jar modified 18 April 2005, 15:13:50 cryptix-message-api.jar modified 18 April 2005, 15:13:52 cryptix-openpgp-provider.jar modified 18 April 2005, 15:13:50 And can't seem to satisfactorily decrypt UTF-8 extended character sets. For example the string: <?xml version=3D"1.0" = encoding=3D"UTF-8"?><UserDetails><FullName>=F6=F0rum = vir=F0ingu</FullName><Name>br=F3=F0urlega</Name></UserDetails> Comes back as <?xml version=3D"1.0" encoding=3D"UTF-8"?><UserDetails><FullName> rum = vir ingu</FullName><Name>br urlega</Name></UserDetails> I'm using OpenPGP and LiteralMessage.getTextData(), please see attached = Junit test class for example code... You'll have to gen your own keys. I've noticed the LiteralMessage.getEncoded() returns the correctly = decoded string, but has 8 chars of rubbish prepended to start... Should = it??? Adivice on what's going on with getTextData & getEncoded would be = greatly appreciated. Many thanks Alex. |