/// <summary>
/// 将字节数组转为字符串
/// </summary>
/// <param name="b">字节数组</param>
/// <param name="e">编码,默认为Default</param>
/// <returns>字符串</returns>
public static string ByteToString(byte[] b, Encoding e = null)
byte[] b = HttpHelper.StringToByte("苏飞");
//可指定编码
b = HttpHelper.StringToByte("苏飞", Encoding.UTF8);
string s = HttpHelper.ByteToString(b);
//可指定编码
s = HttpHelper.ByteToString(b, Encoding.UTF8);
欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |