mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
#1087 FreeSql.Generator 在mac系统提示信息乱码,去掉 Console.OutputEncoding = gb2312
This commit is contained in:
@ -29,16 +29,16 @@ namespace FreeSql.Generator
|
||||
public ConsoleApp(string[] args, ManualResetEvent wait)
|
||||
{
|
||||
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
||||
var gb2312 = Encoding.GetEncoding("GB2312");
|
||||
if (gb2312 != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
Console.OutputEncoding = gb2312;
|
||||
Console.InputEncoding = gb2312;
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
//var gb2312 = Encoding.GetEncoding("GB2312");
|
||||
//if (gb2312 != null)
|
||||
//{
|
||||
// try
|
||||
// {
|
||||
// Console.OutputEncoding = gb2312;
|
||||
// Console.InputEncoding = gb2312;
|
||||
// }
|
||||
// catch { }
|
||||
//}
|
||||
|
||||
//var ntjson = Assembly.LoadFile(@"C:\Users\28810\Desktop\testfreesql\bin\Debug\netcoreapp2.2\publish\testfreesql.dll");
|
||||
|
||||
|
Reference in New Issue
Block a user