[Mono-dev] ASCII Strings Proposal

Greg Young gregoryyoung1 at gmail.com
Thu Jul 28 14:43:27 UTC 2016


Is it really a good idea to use a different encoding than the CLR?
Lots of people do stuff with unsafe code etc which would need to be
changed.

Also to add a bit of context (history)
http://blog.coverity.com/2014/04/09/why-utf-16/#.V5oZpJO7iko is worth
a read

On Thu, Jul 28, 2016 at 3:47 PM, Edward Ned Harvey (mono)
<edward.harvey.mono at clevertrove.com> wrote:
>> From: mono-devel-list-bounces at lists.dot.net [mailto:mono-devel-list-
>> bounces at lists.dot.net] On Behalf Of Jon Purdy
>>
>> > For historical reasons, System.String uses the UCS-2 character encoding,
>> that is, UTF-16 without surrogate pairs.
>>
>> > However, most strings in typical .NET applications consist solely of ASCII
>> characters, leading to wasted space: half of the bytes in a string are likely to
>> be null bytes!
>
> What's wrong with UTF-8?
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.dot.net
> http://lists.dot.net/mailman/listinfo/mono-devel-list



-- 
Studying for the Turing test


More information about the Mono-devel-list mailing list