Different behaviours of treating \\ (backslash) in the url by FireFox and Chrome

∥☆過路亽.° 提交于 2019-12-01 03:12:57

The unified solution to deal with backslash in a URL is to use %5C. RFC 2396 did not allow that character in URLs at all (so any behavior regarding that character was just error-recovery behavior). RFC 3986 does allow it, but is not widely implemented, not least because it's not exactly compatible with existing URL processors.

Chrome, in particular, does the same thing as IE: assumes you meant a forward slash any time you type a backslash, as you discovered, because that's what Windows file paths do.

Try using the Slashy add-on in the firefox to help you with it.Here's a link to it.

Slashy

This backslash auto conversion issue has fixed in Chrome version >= 53.0.2785.116.

Now the backslashes are treated properly as %5C.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!