.Net:5.0
public void ConfigureServices(IServiceCollection services) { services.AddControllersWithViews(); services.AddControllers().AddJsonOptions(options => { options.JsonSerializerOptions.Encoder = JavaScriptEncoder.Create(UnicodeRanges.All); }); }