汉字变成空格了怎么办?
using System.Collections;
internal class Program
{
private static void Main(string[] args)
{
Console.Write("输入:");
string? a = Console.ReadLine();
Console.WriteLine($"输出:[{a}]");
}
}
添加 Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);