In my stream, I get a Detected: Detected windows-1252 with confidence of 0,8796469. So the Encoding property refers to an instance of a System.Text.SBCSCodePageEncoding encoding (which does not work for me). However, this encoding does not seem to be equivalent to CodePagesEncodingProvider.Instance.GetEncoding(1252) (which would work for me).
What is the reason for choosing the first one? And what's the difference to the latter one?
I realized that I forgot to rollback the stream (stream.Position = 0;) after running detection. Now, it seems that the detected encoding just works fine.
In my stream, I get a
Detected: Detected windows-1252 with confidence of 0,8796469
. So theEncoding
property refers to an instance of aSystem.Text.SBCSCodePageEncoding
encoding (which does not work for me). However, this encoding does not seem to be equivalent toCodePagesEncodingProvider.Instance.GetEncoding(1252)
(which would work for me).What is the reason for choosing the first one? And what's the difference to the latter one?