- 优化导出的json数据文件。unicode字符以原字符方式导出而不是\uxxxx这种格式。
parent
0cbf47e23c
commit
83a6e4fd12
|
|
@ -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 helpWriter = new StringWriter();
|
||||||
var parser = new Parser(ps =>
|
var parser = new Parser(ps =>
|
||||||
|
|
@ -1113,6 +1113,7 @@ class Vector4:
|
||||||
{
|
{
|
||||||
Indented = true,
|
Indented = true,
|
||||||
SkipValidation = false,
|
SkipValidation = false,
|
||||||
|
Encoder = System.Text.Encodings.Web.JavaScriptEncoder.Create(System.Text.Unicode.UnicodeRanges.All),
|
||||||
});
|
});
|
||||||
JsonExportor.Ins.WriteList(records, jsonWriter);
|
JsonExportor.Ins.WriteList(records, jsonWriter);
|
||||||
jsonWriter.Flush();
|
jsonWriter.Flush();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue