From 83a6e4fd127e7bb0c1bcf5899f0acb0e85c91cae Mon Sep 17 00:00:00 2001 From: walon Date: Mon, 12 Apr 2021 11:40:15 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BC=98=E5=8C=96=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E7=9A=84json=E6=95=B0=E6=8D=AE=E6=96=87=E4=BB=B6=E3=80=82unico?= =?UTF-8?q?de=E5=AD=97=E7=AC=A6=E4=BB=A5=E5=8E=9F=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=E5=AF=BC=E5=87=BA=E8=80=8C=E4=B8=8D=E6=98=AF?= =?UTF-8?q?\uxxxx=E8=BF=99=E7=A7=8D=E6=A0=BC=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Luban.Job.Cfg/Source/JobController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Luban.Job.Cfg/Source/JobController.cs b/src/Luban.Job.Cfg/Source/JobController.cs index 75619da..8ed4225 100644 --- a/src/Luban.Job.Cfg/Source/JobController.cs +++ b/src/Luban.Job.Cfg/Source/JobController.cs @@ -119,7 +119,7 @@ namespace Luban.Job.Cfg } - private bool TryParseArg(List args, out GenArgs result, out string errMsg) + private static bool TryParseArg(List args, out GenArgs result, out string errMsg) { var helpWriter = new StringWriter(); var parser = new Parser(ps => @@ -1113,6 +1113,7 @@ class Vector4: { Indented = true, SkipValidation = false, + Encoder = System.Text.Encodings.Web.JavaScriptEncoder.Create(System.Text.Unicode.UnicodeRanges.All), }); JsonExportor.Ins.WriteList(records, jsonWriter); jsonWriter.Flush();