1、先 右键引用,添加 System.Web 数据集

2、语句如下

string s= System.Web.HttpUtility.UrlEncode("123", System.Text.Encoding.Unicode); //编码
string b = System.Web.HttpUtility.UrlDecode(s, System.Text.Encoding.Unicode);  //解码

 

 

 

相关文章:

  • 2021-07-19
  • 2022-12-23
  • 2021-09-10
  • 2022-12-23
  • 2022-02-14
  • 2021-06-02
  • 2021-12-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案