Re: byte array to string
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Sun, 31 Jul 2005 20:48:11 +0100
<realgeek@xxxxxxxxx> wrote:
> By ASCII encoded string I mean "won't be screwed up by
> Encoding.ASCII.GetString"
> :)
It would be much, much better not to try in the first place. Keep text
as text and binary as binary. When you need to write binary, don't try
to convert it into a string first. When you need to write text, make
sure you're using the appropriate encoding. Following those simple
rules solves an awful lot of problems similar to this one.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.
- References:
- byte array to string
- From: realgeek
- Re: byte array to string
- From: Jon Skeet [C# MVP]
- Re: byte array to string
- From: realgeek
- Re: byte array to string
- From: Jon Skeet [C# MVP]
- Re: byte array to string
- From: realgeek
- byte array to string
- Prev by Date: Re: equivalent C# for VB.NET "Session"
- Next by Date: Re: question about a C# book
- Previous by thread: Re: byte array to string
- Next by thread: Re: byte array to string
- Index(es):
Relevant Pages
|