qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aidan Skinner" <ai...@apache.org>
Subject Re: Random .Net question
Date Thu, 05 Jun 2008 11:51:39 GMT
On Thu, Jun 5, 2008 at 12:34 PM, Robert Greig <robert.j.greig@gmail.com> wrote:

> 2008/6/5 Aidan Skinner <aidan@apache.org>:
>> 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:aidan.skinner@gmail.com
"We belong to nobody and nobody belongs to us. We don't even belong to
each other."

View raw message