【问题标题】:Why doesn't stack overflow encode c++ to c%2b%2b in its URL?为什么堆栈溢出不会在其 URL 中将 c++ 编码为 c%2b%2b?
【发布时间】:2019-02-25 03:31:36
【问题描述】:

当我转到https://stackoverflow.com/tags/c++ 时,它为什么不将其编码为https://stackoverflow.com/tags/c%2b%2b。这不应该是浏览器做的事情吗?堆栈溢出如何阻止编码。

【问题讨论】:

    标签: url urlencode


    【解决方案1】:

    + 在用作路径的一部分时不需要进行百分比编码。

    见:https://www.rfc-editor.org/rfc/rfc3986.txt

    尤其是pcharsub-delim 的定义。

    【讨论】:

      猜你喜欢
      • 2014-12-20
      • 1970-01-01
      • 1970-01-01
      • 2021-09-30
      • 1970-01-01
      • 1970-01-01
      • 2021-06-18
      • 2012-05-10
      • 2012-12-19
      相关资源
      最近更新 更多