From 1f39603039ce1ea6ffb53d22a2adec4309f8d127 Mon Sep 17 00:00:00 2001 From: milimoe Date: Fri, 12 Apr 2024 15:06:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E7=95=99=E4=B8=AD=E6=96=87=E5=8E=9F?= =?UTF-8?q?=E5=A7=8B=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FunGame.Core.csproj | 1 + Service/JsonManager.cs | 3 +++ build-linux-x64.bat | 1 - build-release-x64.bat | 1 - publish-linux-x64.bat | 1 - publish-release-x64.bat | 1 - 6 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FunGame.Core.csproj b/FunGame.Core.csproj index e91cfd9..5d7445a 100644 --- a/FunGame.Core.csproj +++ b/FunGame.Core.csproj @@ -1,6 +1,7 @@ + Library net8.0 enable enable diff --git a/Service/JsonManager.cs b/Service/JsonManager.cs index f9a572a..23c3f8e 100644 --- a/Service/JsonManager.cs +++ b/Service/JsonManager.cs @@ -1,6 +1,8 @@ using System.Collections; +using System.Text.Encodings.Web; using System.Text.Json; using System.Text.Json.Serialization; +using System.Text.Unicode; using Milimoe.FunGame.Core.Library.Common.JsonConverter; using Milimoe.FunGame.Core.Library.Common.Network; @@ -14,6 +16,7 @@ namespace Milimoe.FunGame.Core.Service private readonly static JsonSerializerOptions GeneralOptions = new() { WriteIndented = true, + Encoder = JavaScriptEncoder.Create(UnicodeRanges.All), ReferenceHandler = ReferenceHandler.IgnoreCycles, Converters = { new DateTimeConverter(), new DataTableConverter(), new DataSetConverter(), new UserConverter(), new RoomConverter() } }; diff --git a/build-linux-x64.bat b/build-linux-x64.bat index b262d7b..5bb0d18 100644 --- a/build-linux-x64.bat +++ b/build-linux-x64.bat @@ -1,5 +1,4 @@ @echo off -call cd src call dotnet clean call dotnet build -c Release -r linux-x64 pause \ No newline at end of file diff --git a/build-release-x64.bat b/build-release-x64.bat index 2bc0cd6..7b15caf 100644 --- a/build-release-x64.bat +++ b/build-release-x64.bat @@ -1,5 +1,4 @@ @echo off -call cd src call dotnet clean call dotnet build -c Release -r win-x64 pause \ No newline at end of file diff --git a/publish-linux-x64.bat b/publish-linux-x64.bat index e6d0fce..93cbe43 100644 --- a/publish-linux-x64.bat +++ b/publish-linux-x64.bat @@ -1,5 +1,4 @@ @echo off -call cd src call dotnet clean call dotnet publish -c Release -r linux-x64 pause \ No newline at end of file diff --git a/publish-release-x64.bat b/publish-release-x64.bat index 18f789b..c8a9c42 100644 --- a/publish-release-x64.bat +++ b/publish-release-x64.bat @@ -1,5 +1,4 @@ @echo off -call cd src call dotnet clean call dotnet publish -c Release -r win-x64 pause \ No newline at end of file