控制台程序:
修改文件编码为UTF8
WEB程序:
在await context.Response.WriteAsync("中文");前面加上:context.Response.ContentType = "text/plain;charset=utf-8";