byte[] b = System.Text.Encoding.Default.GetBytes(string s); 转载于:https://www.cnblogs.com/tmsharper/archive/2008/12/22/1359599.html