i have variable name
var vehiclename ="TVS STAR CITY+ (BS IV)-SMAG-SBT" like this this coming from dynamically by click event on pie charts that block name coming from database
now my problem is i have passed this variable as parameter
$.ajax({
datatype: "json",
Type: "Get",
url: baseUri + 'api/Purchases/BookingByVehicleName/?VehicleName=' + vehicleName,
success: function (data) {
}
},
error: function (jqXHR, textStatus, errorThrown) {
}
});
this is my control
[HttpGet]
[Route("BookingByVehicleName")]
public IEnumerable<object> BookingByVehicleName(string VehicleName) => bizPurchases.BookingByVehicleName(VehicleName);
now the issuse is parameters miss the specal character
orginal parameter cames from variable is "TVS STAR CITY+ (BS IV)-SMAG-SBT" when hits the controller the parameter value turns into "TVS STAR CITY (BS IV) SMAG SBT" here special character are missings
What I have tried:
i have changed data type string to char but its not working can u please help any for this