1 //该数据如果要http get、post提交,需要经过转义,否则该数据中含& ''等字符会导致意外错误、需要转义。这里用HttpUtility.UrlEncode来转义。接收方无需反解析
2 string htmlEncodeExtraInfo = HttpUtility.UrlEncode(extraInfo.ToJson());    //HttpUtility.UrlEncode,HttpUtility.HtmlEncode(str),WebUtility.HtmlEncode(str)

 

相关文章:

  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2021-07-21
  • 2021-08-27
  • 2022-01-28
  • 2021-11-11
  • 2022-01-11
猜你喜欢
  • 2021-10-12
  • 2022-12-23
  • 2021-09-15
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
相关资源
相似解决方案