开发者

how to express @ sign in URl

开发者 https://www.devze.com 2023-02-12 10:09 出处:网络
I was doing self.request.path and got the the path which is the email address, for ex开发者_高级运维ample, example@hotmail.com,the it cant display it the way it was, it shows like example01_hotmail.co

I was doing self.request.path and got the the path which is the email address, for ex开发者_高级运维ample, example@hotmail.com, the it cant display it the way it was, it shows like example01_hotmail.com, all cgi.urlencode(), is there a way that the self.request.path could return the integral url? Thank you


URLEncode the "@" as %40. URL should look like:

http://example.com/blah?email=example%40hotmail.com

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号