Skip to content Skip to sidebar Skip to footer

Use Character # In URL Inside File Name

I need to put a link with this href='file://attachments/aaaa_#_aaaa.msg' Obviously in that way is not working because the hash character # is used for anchors. So I try to change t

Solution 1:

You will avoid lots and lots and lots of pain if you are able to rename your files so they don't contain a "#" character. As long as they do, you will probably have current and future cross-browser issues, confusion on behalf of future developers working on your code (or confusion on your behalf in the future, when you've forgotten the ins and outs of the encoding), etc. Also, some Unix/Linux systems don't allow "#" in filenames. Not sure what OS you're using, but your filenames should be as portable as possible across OSs, even if you're "sure" right now that you'll never be running on one of those systems.


Post a Comment for "Use Character # In URL Inside File Name"