diff --git a/Bootstrap.Admin/Startup.cs b/Bootstrap.Admin/Startup.cs index 0dc2e85d..dc080886 100644 --- a/Bootstrap.Admin/Startup.cs +++ b/Bootstrap.Admin/Startup.cs @@ -17,6 +17,8 @@ using Newtonsoft.Json.Serialization; using Swashbuckle.AspNetCore.Swagger; using System; using System.IO; +using System.Text.Encodings.Web; +using System.Text.Unicode; namespace Bootstrap.Admin { @@ -46,6 +48,7 @@ namespace Bootstrap.Admin /// public void ConfigureServices(IServiceCollection services) { + 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.