converting a byte array to a string

  • Thread starter Thread starter ZorpiedoMan
  • Start date Start date
Z

ZorpiedoMan

There MUST be an easier way...

I have a byte array I want to convert to a string.

I do NOT want to have characters above hex7h converted to a question mark
(that is what System.Text.AsciiEncoder.Encoder.GetString does)

really... there must be an easy way...

:-|
 
ZorpiedoMan said:
I have a byte array I want to convert to a string.

I do NOT want to have characters above hex7h converted
to a question mark (that is what System.Text.AsciiEncoder.
Encoder.GetString does)

really... there must be an easy way...

You may want to use 'System.Text.Encoding.Default.GetString' instead.
Notice that there are different ancodings available like Unicode and UTF-8.
 
Back
Top