From 01b12bb2464bca66af19846b59fb2fa95f88e4aa Mon Sep 17 00:00:00 2001 From: "zhengxuan.zhang" Date: Thu, 21 May 2026 14:57:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DJSON=20=E5=BA=8F=E5=88=97?= =?UTF-8?q?=E5=8C=96=E6=97=B6=E7=9A=84=20Unicode=20=E8=BD=AC=E4=B9=89?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/InspectionResults/InspectionResultStore.cs | 1 + XplorePlane/Services/Pipeline/PipelinePersistenceService.cs | 1 + XplorePlane/Services/Recipe/RecipeService.cs | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/XplorePlane/Services/InspectionResults/InspectionResultStore.cs b/XplorePlane/Services/InspectionResults/InspectionResultStore.cs index 50e0c22..846aa6f 100644 --- a/XplorePlane/Services/InspectionResults/InspectionResultStore.cs +++ b/XplorePlane/Services/InspectionResults/InspectionResultStore.cs @@ -24,6 +24,7 @@ namespace XplorePlane.Services.InspectionResults private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true, + Encoder = System.Text.Encodings.Web.JavaScriptEncoder.UnsafeRelaxedJsonEscaping, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, Converters = { new JsonStringEnumConverter() } }; diff --git a/XplorePlane/Services/Pipeline/PipelinePersistenceService.cs b/XplorePlane/Services/Pipeline/PipelinePersistenceService.cs index 136a291..02ede5c 100644 --- a/XplorePlane/Services/Pipeline/PipelinePersistenceService.cs +++ b/XplorePlane/Services/Pipeline/PipelinePersistenceService.cs @@ -18,6 +18,7 @@ namespace XplorePlane.Services private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true, + Encoder = System.Text.Encodings.Web.JavaScriptEncoder.UnsafeRelaxedJsonEscaping, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, Converters = { new JsonStringEnumConverter() } }; diff --git a/XplorePlane/Services/Recipe/RecipeService.cs b/XplorePlane/Services/Recipe/RecipeService.cs index 2bec334..bb735b9 100644 --- a/XplorePlane/Services/Recipe/RecipeService.cs +++ b/XplorePlane/Services/Recipe/RecipeService.cs @@ -23,7 +23,8 @@ namespace XplorePlane.Services.Recipe private static readonly JsonSerializerOptions _jsonOptions = new() { - WriteIndented = true + WriteIndented = true, + Encoder = System.Text.Encodings.Web.JavaScriptEncoder.UnsafeRelaxedJsonEscaping, }; public RecipeService(