摘要:
错误代码 public Startup() { var builder = new ConfigurationBuilder().AddJsonFile("AppSetting.json"); Configuration = builder.Build(); } 修改 public Startup( 阅读全文
摘要:
控制台程序: 修改文件编码为UTF8 WEB程序: 在await context.Response.WriteAsync("中文");前面加上:context.Response.ContentType = "text/plain;charset=utf-8"; 阅读全文