On Thu, Jun 5, 2008 at 12:34 PM, Robert Greig <[EMAIL PROTECTED]> wrote:

> 2008/6/5 Aidan Skinner <[EMAIL PROTECTED]>:
>
>> I am clearly losing it, but this program:
>
> This isn't quite the same as the Java. Here is my version:

>>                byte[] key =
>> System.Text.UTF8Encoding.UTF8.GetBytes(System.Text.UTF8Encoding.UTF8.GetString(hexkey));
>
> What are you expecting this to do? Return the original byte array? Is
> the original byte array a valid UTF-8 encoding?

I was hoping for the same array as the Java equivalent, the origional
byte array has some characters in the gappy bits of UTF8 (such as
0x8b) and is probably invalid as a result.

- Aidan
-- 
aim/y!:aidans42 g:[EMAIL PROTECTED]
http://aidan.skinner.me.uk/
"We belong to nobody and nobody belongs to us. We don't even belong to
each other."

Reply via email to