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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top