Why is the txt ???????????? ???????????????? ???????????????????? ?????????????? ???????? ?????? ????????
being converted to the txt with the method below?
???????????? ???????????????? ???????????????????? ?????????????? ???????? ?????? ????????
This I believe did not happen before but I just saw it doing it. I am using .NET 4.8.
public static string RemoveAccent(this string txt)
{
if(txt == null)
return txt;
byte[] bytes = Encoding.GetEncoding("Cyrillic").GetBytes(txt);
return Encoding.ASCII.GetString(bytes);
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…