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

[ad_1]

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);
            }

[ad_2]

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