Essentially, string uses the UTF-16 character encoding form
But when saving vs StreamWriter :
This constructor creates a StreamWriter with UTF-8 encoding without a
Byte-Order Mark (BOM),
I've seen this sample (broken link removed):
And it looks like
utf8 is smaller for some strings while
utf-16 is smaller in some other strings.
- So why does .net use
utf16as default encoding for string and
utf8for saving files?
p.s. Ive already read the famous article