- 优化导出的json数据文件。unicode字符以原字符方式导出而不是\uxxxx这种格式。

main
walon 2021-04-12 11:40:15 +08:00
parent 0cbf47e23c
commit 83a6e4fd12
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,7 @@ namespace Luban.Job.Cfg
}
private bool TryParseArg(List<string> args, out GenArgs result, out string errMsg)
private static bool TryParseArg(List<string> 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();