Re: Possible bug in UnicodeEncoding
- From: Mattias Sjögren <mattias.dont.want.spam@xxxxxxxx>
- Date: Wed, 13 Sep 2006 22:37:27 +0200
We here at the office have discovered something odd. Can somebody
please verify this potential bug for us?
I wouldn't call it a bug. There's no guarantee that a random byte
array will come back the same after a
Encoding.GetString/Encoding.GetBytes roundtrip. Some byte values may
have spacial meaning or may be invalid according to that encoding. So
you can't take an arbitrary blob and decode it to a string like that.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.
- References:
- Possible bug in UnicodeEncoding
- From: KrippZ
- Possible bug in UnicodeEncoding
- Prev by Date: Re: XmlReader and first char
- Next by Date: Re: Periodic housekeeping code strategy?
- Previous by thread: Possible bug in UnicodeEncoding
- Next by thread: Re: Possible bug in UnicodeEncoding
- Index(es):