Hi,
I was yesterday, doing the same thing, cyphering some text,
and I also noticed some wierd behaviour around the conversion
from String to bytes.
Today I discovered that the problem was related to the transformation
of the default character encoding of my platform and the internal
unicode representation of a String.
In my case the lines...
byte[] b = { /*some bytes*/ };
String s = new String(b,"ISO-8859-1");
byte[] c = s.getBytes("ISO-8859-1");
resolved the problem, where ISO-8859-1, is the usual ISO Latin Alphabet.
Hope this gives you some hints,
Regards,
PS: Isn't this kind of coincidence amazing... ;)
<RuiGil/>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ismael Blesa
Part
Sent: terca-feira, 14 de Novembro de 2000 11:08
To: Orion-Interest
Subject: ciphering URLs
Hi all,
I am trying to cipher some of the parameters that are sent to my
application Server. I am having some problems with the conversion from
String to an array of bytes. Sometimes the conversion losts info.
Have any of you already solved this issue.
Regards