public static string GetSubStr(string str, int num)
{
byte[] buffer = System.Text.Encoding.Default.GetBytes(str);
string ret = str;

if (buffer.Length > num)
{

ret = System.Text.Encoding.Default.GetString(buffer, 0, num);
}
return ret.Replace("?", "");
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2022-01-02
  • 2022-03-07
  • 2021-12-02
猜你喜欢
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
相关资源
相似解决方案