private void SwitchEncoding(Encoding newEncoding)
{
if ((newEncoding.WebName != _ps.encoding.WebName || _ps.decoder is SafeAsciiDecoder) && !_afterResetState)
{
Debug.Assert(_ps.stream != null);
UnDecodeChars();
_ps.appendMode = false;
SetupEncoding(newEncoding);
ReadData();
}
}