2011-07-20 63 views
13

我一直在twitter的文本查询字符串参数中遇到一些字符编码问题。Twitter意向和Twitter分享网址之间的区别

一)http://www.twitter.com/share?url=http://www.example.com&text=touché

B)http://twitter.com/share?url=http://www.example.com&text=touché

一),似乎做一些额外的编码和鸣叫出来错误

b)见缺乏WWW的正常工作。

这些都重定向到:
http://twitter.com/intent/tweet?text=touch%C3%A9&url=http%3A%2F%2Fwww.example.com

是否有使用http://twitter.com/share而不是简单的只是一个点:http://twitter.com/intent

回答

4

有一个关于这个问题herehere更多信息。使用web intents而不使用www

Twitter在某些情况下是双重编码字符。向共享者网址添加www就是其中一个漏洞。它也发生在other features中。