我想模仿这对 ATL functions 的行为: AtlEscapeUrl/AtlUnescapeUrl.
最佳答案
我想您正在寻找 HttpServerUtility.UrlEncode
和 HttpServerUtility.UrlDecode
.
通常通过当前 Controller /页面的属性访问,但也可作为 HttpContext.Current.Server.UrlEncode
访问。
关于C# 相当于 AtlEscapeUrl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42747795/