【问题标题】:Twitter intent with % sign带有 % 符号的 Twitter 意图
【发布时间】:2012-01-11 13:39:35
【问题描述】:

我的 Tweet 按钮具有以下 href 值:“https://twitter.com/intent/tweet?text=Yields in Tanzania”。我如何包括 20%?我的输出应该是:“https://twitter.com/intent/tweet?text=Yields in Tanzania is 20%” - 这给了我 324 错误代码。

【问题讨论】:

    标签: html twitter


    【解决方案1】:

    % 在 url 中用于对不安全字符进行编码。为了物理传递%,您必须对其进行编码。在 ISO-8859-1(使用的编码)中,百分号的十六进制值为 25。

    所以,你实际上应该使用:

    "https://twitter.com/intent/tweet?text=Yields in Tanzania is 20%25"
    

    【讨论】:

    猜你喜欢
    • 2013-12-05
    • 2016-06-07
    • 1970-01-01
    • 1970-01-01
    • 2012-01-12
    • 1970-01-01
    • 2017-07-27
    • 2016-03-07
    • 2013-08-08
    相关资源
    最近更新 更多