From 9a2188674d7870f907c990d154eb958a1da7cb84 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 29 Sep 2019 13:14:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BD=91=E9=A1=B5=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E4=B9=B1=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.Admin/Startup.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/admin/Bootstrap.Admin/Startup.cs b/src/admin/Bootstrap.Admin/Startup.cs index ae3f6aa5..ce258b32 100644 --- a/src/admin/Bootstrap.Admin/Startup.cs +++ b/src/admin/Bootstrap.Admin/Startup.cs @@ -14,6 +14,8 @@ using Microsoft.Extensions.Hosting; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System; +using System.Text.Encodings.Web; +using System.Text.Unicode; namespace Bootstrap.Admin { @@ -43,7 +45,7 @@ namespace Bootstrap.Admin /// public void ConfigureServices(IServiceCollection services) { - //services.AddSingleton(HtmlEncoder.Create(UnicodeRanges.All)); + services.AddSingleton(HtmlEncoder.Create(UnicodeRanges.All)); services.Configure(options => { // This lambda determines whether user consent for non-essential cookies is needed for a given request.