Why does C# use UTF-16 for strings?

Why does C# use UTF-16 for strings?

In fact, it doesn’t use real UTF-16 because “C# uses UTF-16 in 2014 because Visual Basic used UCS-2 in 1993” despite “UTF-16 was not invented until 1996”. It use UTF-16 as if surrogate pairs doesn’t exist…

via Why does C# use UTF-16 for strings?.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s