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 1
1
using System ;
2
+ using System . Text . Encodings . Web ;
3
+ using System . Text . Unicode ;
2
4
using Microsoft . AspNetCore . Builder ;
3
5
using Microsoft . AspNetCore . Hosting ;
4
6
using Microsoft . AspNetCore . Mvc ;
17
19
using Abp . Dependency ;
18
20
using Abp . Json ;
19
21
using Microsoft . Extensions . Hosting ;
22
+ using Microsoft . Extensions . WebEncoders ;
20
23
using Newtonsoft . Json . Serialization ;
21
24
22
25
@@ -55,6 +58,11 @@ public void ConfigureServices(IServiceCollection services)
55
58
IdentityRegistrar . Register ( services ) ;
56
59
AuthConfigurer . Configure ( services , _appConfiguration ) ;
57
60
61
+ services . Configure < WebEncoderOptions > ( options =>
62
+ {
63
+ options . TextEncoderSettings = new TextEncoderSettings ( UnicodeRanges . All ) ;
64
+ } ) ;
65
+
58
66
services . AddScoped < IWebResourceManager , WebResourceManager > ( ) ;
59
67
60
68
services . AddSignalR ( ) ;
You can’t perform that action at this time.
0 commit comments