Fix Headlines entry UTF8 issue.

Fix issue with ImageHelper GrayScale.
This commit is contained in:
2024-04-24 13:35:31 -04:00
parent 2c7f7c0b42
commit 3e0f783278
3 changed files with 51 additions and 50 deletions

View File

@@ -115,6 +115,11 @@ namespace MarketData.Utils
{
return (new WindowsPrincipal(WindowsIdentity.GetCurrent())).IsInRole(WindowsBuiltInRole.Administrator);
}
public static String ToUTF8(String str)
{
if(null==str)return str;
return Encoding.UTF8.GetString(Encoding.Default.GetBytes(str));
}
public static String RemoveHtml(String strItem)
{
if(null==strItem)return null;
@@ -133,6 +138,7 @@ namespace MarketData.Utils
strItem=strItem.Replace("”",@"""");
strItem=strItem.Replace("”",@"""");
strItem=strItem.Replace("–","-");
strItem=strItem.Replace("'","'");
return strItem;
}
public static String RemoveDivs(String strItem)