net core 控制台中文乱码的解决方案

net core 对控制台中文的支持需要加入下面的语句

Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); 

原文地址:https://www.cnblogs.com/chenfulai/p/5937524.html