URL 中的段落字符?

发布于 2024-10-03 19:24:31 字数 381 浏览 0 评论 0原文

我刚刚看到一篇 Google App Engine 文章,其中使用了有趣的倒退方式某些 URL 中的“P”字符(查看第一个代码框顶部附近)。你知道你的高中英语老师用来标记新段落的字符(感谢维基百科,我了解到这个字符被称为“pilcrow”)。

我从来没有在网址中看到过这个。那么是哪一个呢?

  1. 这有一个标准的特定含义,那就是……
  2. 这是一个拼写错误,应该是……
  3. 这是谷歌的某个人刚刚编造的东西。他们的意思可能是……
  4. 什么角色?我看到了一些东西。

I just ran across this an Google App Engine article that uses that funny backwards 'P' character in some URL's (look near the top of the first code box). You know that character that your high school English teacher used to mark new paragraphs (which I've learned, thanks to Wikipedia, is called a "pilcrow").

I've never seen this in a URL. So which is it?

  1. This has a standard specific meaning which is ...
  2. This is a typo, it should be ...
  3. This is something that somebody at Google just made up. What they might mean is ...
  4. What character? I'm seeing things.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

指尖凝香 2024-10-10 19:24:31

位于构成 html 转义序列 部分的 URL 中,即 ¶。浏览器的行为很奇怪,因为转义序列不完整(缺少 ;),Chrome 仍然呈现该符号。我相信转义序列本身在片段中没有被正确转义。

is in the URL which forms part of the html escape sequence , i.e. ¶. It is odd browser behavior that, given the escape sequence is not complete (missing ;), Chrome is still rendering the symbol. The escape sequence itself has just not been escaped correctly in the snippet I believe..

祁梦 2024-10-10 19:24:31

发生的情况是,该页面包含序列 ¶ ,某些浏览器(至少 Chrome)将其解释为 ¶符号 ¶ 的转义码。有趣的浏览器行为,但页面不应包含原始的&符号。

What happens is that the page contains the sequence ¶ some browsers (Chrome at least) interpret that as if it was ¶ the escape code for the symbol ¶. Funny browser behaviour, but the page should not have contained raw ampersands.

寄离 2024-10-10 19:24:31

正确地转义所有内容并处理不同的浏览器行为是一件痛苦的事情:url 中的意外 HTML 实体

在这种情况下,奇怪的是浏览器不应该将 ¶m 识别为 ,然后识别为 m

Escaping everything properly and dealing with divergent browser behavior is a pain: Accidental HTML entities in urls.

The odd thing in this case is that ¶m should not be recognized by the browser as and then m.

我很OK 2024-10-10 19:24:31

我的镜头...渲染错误。
IE - 显示它
Chrome - 显示它
FireFox - 显示正确的&符号(用于URLS+参数)

用3个浏览器检查源代码,它们都显示&字符。

My shot... rendering bug.
IE - shows it
Chrome - Shows it
FireFox - Displays the correct & symbol (used in URLS+parameters)

Checked source with the 3 browsers, and they all show the & char.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文