# Symbol in <a href>

Results 1 to 2 of 2

Thread: # Symbol in <a href>

  1. #1
    Join Date
    Dec 1969

    Default # Symbol in <a href>

    I am trying to link to a file that contains a # sign in its file name. For example, File name=MyFile #8.txt. <BR><BR>Right now, if I add "&#060;a href="MyFile #8.txt"&#062; to my code, I get "Page Not Found (I am assuming because the browser mistakenly is looking for an 8 anchor and is not finding one). <BR><BR>Is there a way, e.g. using a special character, to add a # sign in the href attribute so that the browser understands that it is actually part of the file name and not an anchor? Or, is there another tag I can use to accomplish the same action?<BR><BR>I appreciate any help/suggestions anyone might have. Thanks.<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default You could TRY...

    &#060;a href="MyFile %238.txt"&#062; <BR><BR>No idea if it would work. I *tend* to think it will, because in NS you probably would really need to do<BR><BR>&#060;a href="MyFile%20%238.txt"&#062; <BR><BR>to encode the space character, as well.<BR><BR>Let us know! bill.wilkinson@sun.com<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts