搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Firefox does not interpret encoded URL as a URL

  • 1 回覆
  • 1 有這個問題
  • 7 次檢視
  • 最近回覆由 FoxyFirey

more options

When I paste the following URL into the URL bar, it works on Chrome and Edge, but Firefox returns a 404 (page not found):

https://github.com/nidi3/graphviz%2djava#user%2dcontent%2dhow%2dit%2dworks

How can I get Firefox to recognize encoded URLs?

The un-encoded URL works, but is fragile because of the hyphen-minus characters. The source text is on a Powerpoint slide, and preservation of the hyphen-minus depends on the PDF writer, any PDF tools used (croppers, n-uppers, rotaters, page manipulators/extractors/combiners, etc.), and the various systems on which the document is processed.

When I paste the following URL into the URL bar, it works on Chrome and Edge, but Firefox returns a 404 (page not found): https://github.com/nidi3/graphviz%2djava#user%2dcontent%2dhow%2dit%2dworks '''How can I get Firefox to recognize encoded URLs?''' The un-encoded URL works, but is fragile because of the hyphen-minus characters. The source text is on a Powerpoint slide, and preservation of the hyphen-minus depends on the PDF writer, any PDF tools used (croppers, n-uppers, rotaters, page manipulators/extractors/combiners, etc.), and the various systems on which the document is processed.

由 FoxyFirey 於 修改

所有回覆 (1)

more options

No, it is pasted as text into a textbox in Powerpoint 2013. I replaced all hyphen-minus symbols with "%2d" to prevent them from being converted to other forms of dashes. In the resulting PDF, the URL contains no non-ASCII characters that can be mishandled in any step of any document processing. One should be able to reliably copy and paste the URL into the URL bar. As I said, it works for Edge and Chrome. If I copy and paste the above URL into Firefox's URL bar, I get the 404 error.

If I replace "%2d" with hyphen-dash, it works in Firefox, but that defeats the purpose of going to "%2d" and brings a whole host of problems. If I use hypen-dash in the source text in the Powerpoint textbox, it is fragile and subject to all manner of unanticipatable character conversions, depending on the processing that the document is subjected to, and the systems on which this is done.