netcore 控制台中文乱码

Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Console.OutputEncoding = Encoding.GetEncoding("GB2312");
Console.InputEncoding = Encoding.GetEncoding("GB2312");

posted @ 2016-08-11 20:15  nicye  阅读(890)  评论(0编辑  收藏  举报