Re: How to link to a file with ampersand in its name

Liste des GroupesRevenir à ol misc 
Sujet : Re: How to link to a file with ampersand in its name
De : lew.pitcher (at) *nospam* digitalfreehold.ca (Lew Pitcher)
Groupes : comp.os.linux.misc
Date : 07. Sep 2024, 20:08:01
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbi4q1$1d7gt$1@dont-email.me>
References : 1
User-Agent : Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
On Sat, 07 Sep 2024 18:59:11 +0100, The Natural Philosopher wrote:

I have a file that has to be called U&blah.png
 
I cannot find any way to direct the browser to load it
 
U&ampblah.png doesnt work
U%26blah.png doesnt work
 
Using php rawurlencode doesnt work. It effectively does nothing
 
Any ideas?

This does not /directly/ address your issue, but....

Can you not create a filesystem (hard/soft)link to the file,
such that the (hard/soft)link /does not/ include the ampersand,
and then use /that/ filename in your html?

Something like
  ln -s 'U&blah.png' U_blah.png
...
  <img src="U_blah.png"/>

?

--
Lew Pitcher
"In Skills We Trust"

Date Sujet#  Auteur
7 Sep 24 * How to link to a file with ampersand in its name14The Natural Philosopher
7 Sep 24 +- Re: How to link to a file with ampersand in its name1Lew Pitcher
7 Sep 24 +* Re: How to link to a file with ampersand in its name9Andy Burns
7 Sep 24 i+* Re: How to link to a file with ampersand in its name6Lew Pitcher
7 Sep 24 ii+- Re: How to link to a file with ampersand in its name1Andy Burns
7 Sep 24 ii`* Re: How to link to a file with ampersand in its name4Lew Pitcher
8 Sep 24 ii `* Re: How to link to a file with ampersand in its name3The Natural Philosopher
8 Sep 24 ii  `* Re: How to link to a file with ampersand in its name2rbowman
8 Sep 24 ii   `- Re: How to link to a file with ampersand in its name1The Natural Philosopher
8 Sep 24 i`* Re: How to link to a file with ampersand in its name2The Natural Philosopher
8 Sep 24 i `- Re: How to link to a file with ampersand in its name1Carlos E.R.
7 Sep 24 +- Re: How to link to a file with ampersand in its name1Rich
7 Sep 24 +- Re: How to link to a file with ampersand in its name1Carlos E.R.
8 Sep 24 `- Re: How to link to a file with ampersand in its name1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal