Fix Headlines entry UTF8 issue.
Fix issue with ImageHelper GrayScale.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user