Dotnet core + (plus) sign in Web API routing
问题 I work on web API project in the dotnet core and check user mobile number exists check. [Route("api/[controller]")] public class UserController : Controller { [HttpGet] [Route("mobile/exist/{mobile}/{id:int?}")] public async Task<IActionResult> MobileExist(string mobile, int? id) { return Json(await _userService.MobileExist(mobile, id)); } } Request URL: http://localhost:3364/api/user/mobile/exist/+123456 When I request above URL with the plus sign it given an error. The Same URL without +