C#
protected int GetLength(string strValue)
{
byte[] myByte = System.Text.Encoding.Default.GetBytes(strValue);
return myByte.Length;
}
C#
protected int GetLength(string strValue)
{
byte[] myByte = System.Text.Encoding.Default.GetBytes(strValue);
return myByte.Length;
}
转载于:https://www.cnblogs.com/greateast/archive/2008/11/27/1342160.html