[Mono-list] System.Text.ASCIIEncoding patch

Dietmar Maurer dietmar@ximian.com
Sun, 17 Mar 2002 12:05:38 +0100


mkestner@speakeasy.net wrote:

> This simply is not a good candidate for abstraction. There is a reason why the MS implementation overrides these methods for all the subclasses. UTF8 is probably the only standard encoding that it makes sense to use iconv for the Count related functions.

Please let me explain the rationale behind using iconv. Many of those System.Text functions are used by basic string IO, so we needed a solution for encodings - especially for UTF8. I used iconv because that way I was able to provide a solution for several encodings in a few days (time is a very limited resource).

I don't think glib/iconv is the best solution. IMO a C# based solution would be much nicer - even for UTF8.

- Dietmar