[Mono-dev] strictly decoding ascii

Grant Monroe grant at janrain.com
Tue Dec 6 18:22:12 EST 2005

I posted a bug about System.Text.ASCIIEncoding yesterday. Essentially
the problem I have is that I expected this Encoding to be able to
decode an array of bytes, and give me an error if the bytes aren't
valid ascii. Perhaps I am missing something, but
Encoding.ASCII.GetString(data) seems to succeed even if the bytes
aren't valid ascii. I thought perhaps there would be some
functionality similar to the UTF8Encoding where you can pass a flag to
the constructor to tell it to be strict or not. Any thoughts?

More information about the Mono-devel-list mailing list