What's the difference between EscapeUriString and EscapeDataString?

前端 未结 5 1300
旧时难觅i
旧时难觅i 2020-11-27 11:34

If only deal with url encoding, I should use EscapeUriString?

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-27 11:49

    Use EscapeDataString always (for more info about why, see Livven's answer below)

    Edit: removed dead link to how the two differ on encoding

提交回复
热议问题