File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/Startup Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 11using System ;
2+ using System . Text . Encodings . Web ;
3+ using System . Text . Unicode ;
24using Microsoft . AspNetCore . Builder ;
35using Microsoft . AspNetCore . Hosting ;
46using Microsoft . AspNetCore . Mvc ;
1719using Abp . Dependency ;
1820using Abp . Json ;
1921using Microsoft . Extensions . Hosting ;
22+ using Microsoft . Extensions . WebEncoders ;
2023using Newtonsoft . Json . Serialization ;
2124
2225
@@ -55,6 +58,11 @@ public void ConfigureServices(IServiceCollection services)
5558 IdentityRegistrar . Register ( services ) ;
5659 AuthConfigurer . Configure ( services , _appConfiguration ) ;
5760
61+ services . Configure < WebEncoderOptions > ( options =>
62+ {
63+ options . TextEncoderSettings = new TextEncoderSettings ( UnicodeRanges . All ) ;
64+ } ) ;
65+
5866 services . AddScoped < IWebResourceManager , WebResourceManager > ( ) ;
5967
6068 services . AddSignalR ( ) ;
You can’t perform that action at this time.
0 commit comments