[Solved] Encoding.GetEncoding(“Cyrillic”) making all text question marks in .NET


The text was in some sort of Unicode encoding and why it was acting differently then before with ASCII encoded text. So I did this below before the GetEncoding and it works now.

if(!txt.IsNormalized(NormalizationForm.FormKD))
            {
                txt= txt.Normalize(NormalizationForm.FormKD);
            }

solved Encoding.GetEncoding(“Cyrillic”) making all text question marks in .NET