ram%40yahoo.com" />
开发者

URL Percent Encoding (URI Escaping) in Perl

开发者 https://www.devze.com 2023-01-31 00:45 出处:网络
Can anyone tell me where I can find encoding functions like encode(\"ram@yahoo.com\") ==> ram%40yahoo.com

Can anyone tell me where I can find encoding functions like

encode("ram@yahoo.com") ==> ram%40yahoo.com

and 开发者_C百科decode("ram%40yahoo.com") ==> ram@yahoo.com

Thanks


Use the URI::Escape module from the URI distribution, which is used by pretty much everything.


You can use the uri_encode and uri_decode functions in the URI::Encode package.

0

精彩评论

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