php中UrlEncode()作用

Server.UrlDecode();

Server.UrlEncode();

是两个成对的方法 作用是在URL传参时如果直接传中文可能会出问题(对中文参数支持部完善),所以先用 Server.UrlEncode("中文参数");编码 到另外一个页面接受的时候在用Server.UrlDecode("编码后参数一般为 %+ 16进制数的形式");解码获取中文参数

posted on 2016-01-12 10:08  暴走php  阅读(3761)  评论(0编辑  收藏  举报

导航