netcore 控制台中文乱码

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

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