C# %253A%252F%252F 咋编码

HttpUtility.UrlEncode(HttpUtility.UrlEncode("://"))

二次转码
reuslt: %253a%252f%252f

想要大写的转码,需要使用

var reuslt=Uri.EscapeDataString("://"); 
reuslt=Uri.EscapeDataString(aaa); 

reuslt 为 %253A%252F%252F

js 使用 decodeURIComponent 即可

猜你喜欢

转载自blog.csdn.net/qq_38110067/article/details/120233036