我在 Twitter 的文本查询字符串参数方面遇到了一些字符编码问题。
a) http://www.twitter.com/share?url=http://www.example.com&text=touché
b) http://twitter.com/share?url=http://www.example.com&text=touché
a) 似乎做了额外的编码并且推文出现错误
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
最佳答案
有关于该问题的更多信息 here和 here .使用 web intents没有 www
.
Twitter 在某些情况下是双重编码字符。添加 www
到共享者 url 是这些错误之一。一些 other features 也发生了这种情况。以及。
关于twitter - Twitter 意图和 Twitter 共享 URL 之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6764785/