ChinaUnix.net
相关文章推荐:

url编码的函数 cc

现在很多PHP程序都省去了了 .php 后缀,比如: http://feeds.feedburner.com/ZendDeveloperZone?m=84 请问这个url的原理是什么,这是用的什么技术啊? [ 本帖最后由 HonestQiao 于 2006-6-9 18:08 编辑 ]

by kytexzy - PHP - 2006-06-11 00:25:50 阅读(1225) 回复(7)

相关讨论

这次第一次用smarttemplate这个模板,比smarty小巧了很多,但也有些不方便的地方。 smarty可以直接对url进行编码, 比如 但在smarttemplate里面就好像没有,由于链接是由js提交的,而不是表单提交,所以不能自动编码。 解决办法: 采用js对url中的汉字进行escape编码。 [code][/code] 这样点击链接后的效时: ...

by qiyu15555 - PHP - 2007-11-24 23:15:02 阅读(5956) 回复(11)

今天安装roller,发现说明中有这段 [code] cceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8" /> [/code] 特别引起我注意的是 URIEncoding="UTF-8" ,如果...

by perryhg - Java - 2006-07-10 15:13:37 阅读(12756) 回复(2)

#!/usr/bin/python import urllib import sys string = sys.argv[1] string = unicode(string,"gbk") utf8_string = string.encode("utf-8") gbk_string=string.encode("gbk") gbk=urllib.quote(gbk_string) utf8=urllib.quote(utf8_string) print gbk print utf8 原文地址 http://oss.lzu.edu.cn/modules/newbb/viewtopic.php?topic_id=722 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/94754/s...

by didonglin - Python文档中心 - 2009-05-25 10:58:21 阅读(1419) 回复(0)

http://www.baidu.com/s?ie=gb2312&bs=%B0%C2%D4%CB&sr=&z=&cl=3&f=8&wd=%B7%C7%D6%DE&ct=0 这个百度url里面的wd=%B7%C7%D6%DE 是用什么来编码的? 我尝试过用php函数 urldecode, rawurldecode来解码, 可是解码出来都是乱码~ 请问哪位知道百度这个url的参数是怎么解码的?

by sin@ - PHP - 2008-08-14 17:29:11 阅读(2117) 回复(4)

很多时候我们会遇到类似这样的字符串“%E5%8F%AF%E5%8F%AF%E7%86%8A”,如果你稍有经验就应该知道这是url编码的汉字. url编码的产生是因为在url只有少量的字符可以被使用: "...Only alphanumerics [0-9a-zA-Z], the special characters "$-_.+!*'()," [not including the quotes - ed], and reserved characters used for their reserved purposes may be used unencoded within a url." http://www.blooberry.com/indexdot/html...

by 可可熊 - Python - 2008-08-12 15:21:33 阅读(4160) 回复(9)

#!/usr/bin/python import urllib import sys string = sys.argv[1] string = unicode(string,"gbk") utf8_string = string.encode("utf-8") gbk_string=string.encode("gbk") gbk=urllib.quote(gbk_string) utf8=urllib.quote(utf8_string) print gbk print utf8 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8780/showart_223656.html

by linxh - Python文档中心 - 2006-12-30 14:39:10 阅读(1202) 回复(0)

...我的url里面有中文

by t6760915 - Perl - 2006-07-28 16:51:04 阅读(1560) 回复(3)

1.parse_url -- 解析 url,返回其组成部分 ex: 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/43167/showart_373707.html

by slei0827 - php文档中心 - 2007-09-03 23:29:06 阅读(606) 回复(0)

http://v.youku.com/v_show/id_XNzY4NzYzMDA=.html 有人知道 XNzY4NzYzMDA= 这一块的编码用的是什么算法吗?貌似也不是base64

by yihucha - C/C++ - 2009-03-11 13:28:26 阅读(5406) 回复(5)

$dom = new DomDocument(); $dom->load($url); 程序编码是UTF-8格式的 当$url内的XML文件是UTF-8格式时无问题 当$url的文件格式是非UTF-8格式时出错 在网上搜了很久 没有找到理想答案 望大家指点指点

by qinjian1981 - PHP - 2006-11-12 08:47:27 阅读(3351) 回复(5)