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 called myhtml.html
:
<img src="C:Documents and SettingsscreenshotsImage01.png"/>
When I load myhtml.html
into firefox, the image shows up as a broken image. So I right click the link to view the picture and it shows this modified URL:
file:///c:/Documents%2520and%2520Settings/screenshots/Image01.png
^
^-----Firefox changed my space to %2520.
What the heck? It converted my space into a %2520
. Shouldn't it be converting it to a %20
?
How do I change this HTML file so that the browser can find my image? What's going on here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…