I need use a specific encoding name. In asp.net
I used to do it like this:
var enc = Encoding.GetEncoding("windows-1255");
var name = HttpUtility.UrlEncode("ישראל" ,enc)
How can I achieve the same in asp.net-core
? I was trying to use:
WebUtility.HtmlEncode()
but it does not accept the encoding name in its signature.