diff --git a/samples/NewWebApplicationSample/Controllers/AlipayController.cs b/samples/NewWebApplicationSample/Controllers/AlipayController.cs index 070cfb5e8..203e956ba 100644 --- a/samples/NewWebApplicationSample/Controllers/AlipayController.cs +++ b/samples/NewWebApplicationSample/Controllers/AlipayController.cs @@ -128,7 +128,7 @@ public async Task PagePay(AlipayTradePagePayViewModel viewModel) req.SetReturnUrl(viewModel.ReturnUrl); var response = await _client.PageExecuteAsync(req); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpGet] @@ -154,7 +154,7 @@ public async Task WapPay(AlipayTradeWapPayViewModel viewMode) req.SetReturnUrl(viewMode.ReturnUrl); var response = await _client.PageExecuteAsync(req); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpGet] diff --git a/samples/NewWebApplicationSample/Controllers/JDPayController.cs b/samples/NewWebApplicationSample/Controllers/JDPayController.cs index 05beae70a..b01e72b5a 100644 --- a/samples/NewWebApplicationSample/Controllers/JDPayController.cs +++ b/samples/NewWebApplicationSample/Controllers/JDPayController.cs @@ -46,7 +46,7 @@ public async Task SaveOrderPC(JDPaySaveOrderViewModel viewModel) }; var response = await _client.PageExecuteAsync(request); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpGet] @@ -72,7 +72,7 @@ public async Task SaveOrderH5(JDPaySaveOrderViewModel viewModel) }; var response = await _client.PageExecuteAsync(request); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpGet] diff --git a/samples/NewWebApplicationSample/Controllers/LianLianPayController.cs b/samples/NewWebApplicationSample/Controllers/LianLianPayController.cs index 71b85bc84..06a1f367a 100644 --- a/samples/NewWebApplicationSample/Controllers/LianLianPayController.cs +++ b/samples/NewWebApplicationSample/Controllers/LianLianPayController.cs @@ -51,7 +51,7 @@ public async Task WebQuickPay(LianLianPayWebQuickPayViewModel vie CardNo = viewModel.CardNo, }; var response = await _client.PageExecuteAsync(request); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpGet] @@ -81,7 +81,7 @@ public async Task WapQuickPay(LianLianPayWapQuickPayViewModel vie CardNo = viewModel.CardNo, }; var response = await _client.PageReqDataExecuteAsync(request); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpGet] diff --git a/samples/NewWebApplicationSample/Controllers/UnionPayController.cs b/samples/NewWebApplicationSample/Controllers/UnionPayController.cs index 12883c4e7..90880bf8e 100644 --- a/samples/NewWebApplicationSample/Controllers/UnionPayController.cs +++ b/samples/NewWebApplicationSample/Controllers/UnionPayController.cs @@ -47,7 +47,7 @@ public async Task FrontConsume62(UnionPayForm_6_2_FrontConsumeVie BackUrl = viewModel.BackUrl, }; var response = await _client.PageExecuteAsync(request); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpPost]