my ASP.NET MVC application is UTF-8, but I get a POST request in Encoding.Default from a third-party application out of my control.
What is the easiest and easiest way to modify a request for only one action of one controller ? (The rest of my application should remain UTF-8).
public class Message { public int id { get; set; } public string phone { get; set; } public string mes { get; set; } public string to { get; set; } } [HttpPost] public ActionResult Receive(Message msg) { AddIncomingMessage(msg); return new EmptyResult(); }
source share