Response.Write(Util.Big52Unicode(tt));
///
/// ANSI轉Unicode
///
///
///
public static string Big52Unicode(string str)
{
new Regex("(?
Match mc = re.Match(str);
while (mc.Success)
{
int S = Convert.ToInt32(mc.Result("${pp}"));
string newS = Char.ConvertFromUtf32(S);
//HttpContext.Current.Response.Write(Char.ConvertFromUtf32(S) +
"
");
str = str.Replace("" + S + ";", newS);
mc = mc.NextMatch();
}
return str;
}
沒有留言:
張貼留言