今天做需求,C#中用到了URL中的UFF-8编码和解码记录下:

//utf-8编码
/string reqmsgutf = System.Web.HttpUtility.UrlEncode(reqmsg,System.Text.Encoding.UTF8);

//UTF-8解码
string respmsg = System.Web.HttpUtility.UrlDecode(respmsgutf,System.Text.Encoding.UTF8);

相关文章:

  • 2022-01-09
  • 2022-02-15
  • 2022-12-23
  • 2021-06-24
  • 2021-11-30
  • 2022-12-23
  • 2021-11-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
相关资源
相似解决方案