我有一个非常奇怪的问题,我生成的要在电子邮件中发送的查询字符串正在以某种方式更改。
我编写的一个旧应用程序根据数据库中的各种参数创建一个 URL,
dim wpret as string = "<a target=_blank href=""https://.......?instId=" & ID
& "&amount=" & Server.UrlEncode(amount)
& "¤cy=" & Server.UrlEncode(paypalcurr)
& "&desc=Reservation""">Click here to pay with WorldPay</a>"
...这应该翻译成:
...&货币=英镑...
但是,发送到页面的内容是:
¤cy=GBP
因此,URL 格式错误,¤cy 更改为 ¤cy=GBP
这对任何人都有意义吗? URL 的其余部分绝对没问题 - 只是 ¤cy 受到影响。
我应该提到,我的电子邮件是通过 SendGrid 转发的。
感谢您的任何见解。
Mark
您需要对以下内容进行 HTML 编码&
字符为&
.
Dim str = "<a target=""_blank"" href=""https://....?instId=" & ID & "&amount=" & Uri.EscapeDataString(amount) & "&currency=" & Uri.EscapeDataString(paypalcurr) & etc
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)