.NetCore
程序自带无GBK编码格式
解决方法
在startup类中加上Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);即可