修改BUG:增加中文输出编码

This commit is contained in:
Argo-Surface 2019-01-15 18:21:41 +08:00
parent 7e1b8291c8
commit f020a3b683
1 changed files with 3 additions and 0 deletions

View File

@ -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
/// <param name="services"></param>
public void ConfigureServices(IServiceCollection services)
{
services.AddSingleton(HtmlEncoder.Create(UnicodeRanges.All));
services.Configure<CookiePolicyOptions>(options =>
{
// This lambda determines whether user consent for non-essential cookies is needed for a given request.