using System.Text;
public static string convert(Encoding from,Encoding to,string input)
{
try
{
byte[] source = Encoding.Default.GetBytes(input);
byte[] utf8 = Encoding.Convert(from,to, source);
return Encoding.UTF8.GetString(utf8);
}
catch (Exception ee)
{
return string.Empty;
}
}
新闻热点
疑难解答