A html space is showing as instead of

前端 未结 5 633
自闭症患者
自闭症患者 2020-11-29 02:39

Passing a filename to the firefox browser causes it to replace spaces with %2520 instead of %20.

I have the following HTML in a file calle

5条回答
  •  一生所求
    2020-11-29 02:56

    When you are trying to visit a local filename through firefox browser, you have to force the file:\\\ protocol (http://en.wikipedia.org/wiki/File_URI_scheme) or else firefox will encode your space TWICE. Change the html snippet from this:

    
    

    to this:

    
    

    or this:

    
    

    Then firefox is notified that this is a local filename, and it renders the image correctly in the browser, correctly encoding the string once.

    Helpful link: http://support.mozilla.org/en-US/questions/900466

提交回复
热议问题