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