string text="中文"; string keyword; byte[] buffer= Encoding.UTF8.GetBytes(text); keyword=Encoding.GetEncoding("GB2312").GetString(buffer);