I am trying to use an encoding page that is not in the common initialized encoding pages in C#.
var greekEncoding = System.Text.Encoding.GetEncoding("1253");
using (var httpClient = new HttpClient())
{
var httpContent = new StringContent(xmlString, greekEncoding, "text/xml");
return await httpClient.PostAsync(baseUrl, httpContent);
}
System.Text.Encoding has a function GetEncoding("iso-8859-7") or GetEncodings() which returns all the possible encoding pages.
When I try to retrieve a encoding page such as "ISO-8859-7" or "Windows-1253" the Encoding Pages are not registered by default and the result is unrecognizable characters.
How can I register ALL Code Pages in my dotnet core Solution ?