public static string UnicodeToAscii(string str)
{StringBuilder strResult = new StringBuilder();
if (!string.IsNullOrEmpty(str))
{
string[] strlist = str.Replace("&#", "u").Split(new char[]{'u'},StringSplitOptions.RemoveEmptyEntries);
try
{
string s = Microsoft.JScript.StringConstructor.fromCharCode(strlist);
strResult.Append(s);
}
catch (FormatException ex)
{
return Regex.Unescape(str);
}
}
return strResult.ToString();
}