I need to create System.Encoding for 1251 codepage.
On my russian Windows I use
Encoding encoding = Encoding.Default
I am afraid th
Correct, you will get different results on different machines if you use Encoding.Default.
Encoding.Default
If you want a specific codepage, you can use Encoding.GetEncoding:
Encoding encoding = Encoding.GetEncoding("windows-1251");