This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
If you use a correct filename with an # or an | charactere the command <IMG src="#myfilename".... or <IMG src="|ourfile"... doesn't display any image.
Changing the Component to "HTML5 spec" and setting Assignee to Ian Hickson.
(In reply to comment #0) > If you use a correct filename with an # or an | charactere the command > > <IMG src="#myfilename".... or > > <IMG src="|ourfile"... > > doesn't display any image. The parameter is a URI reference, not a filename. The "#" would need to be escaped.
Sorry | character is an invalide character for filename but the case is stil there with an # anywhere inside the filename.
No more succes with an escape character
You need to URL-escape them, specifically replacing "#" with "%23". This doesn't have anything to do with the HTML spec, though. ("|" is a valid filename in Unix, by the way, including Linux and OS X.)
You are right. My misunderstanding is comming from the htmlenties that doesn't manage the # in standard. So I close the item <?php $fn = "Config/img/@#T%23_Sur la route.jpg" ; $fh = htmlentities($fn); echo $fh."***".$fh."<br />"; echo "<img src=\"".$fh."\" />" ; ?>
mass-move component to LC1