Pete <an*******@discussions.microsoft.com> wrote:
The reason is one step further: I am reading an MQ Series stream to
get messages. The messages have thoes umlaut in it.
When I read it, I never get the original character. For example, when
reading the queue as array of bytes I have get the value 129, which
is in the "?" that I've put in the queue.
But all I get when I put this in the textbox is a square, meaning not
a real value I can present. Even when I read the queue as
String s= queue.ReadString( queue.length )
I do not get the "?"
You need to work out what encoding the original stream was written in.
It may well have been written in the default encoding for your
platform, in which case you need to specify Encoding.Default when you
create the reader on the stream.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too