Deutsch   English   Français   Italiano  
<vbi86i$1fj9h$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lew Pitcher <lew.pitcher@digitalfreehold.ca>
Newsgroups: comp.os.linux.misc
Subject: Re: How to link to a file with ampersand in its name
Date: Sat, 7 Sep 2024 19:05:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <vbi86i$1fj9h$1@dont-email.me>
References: <vbi49f$1f6gn$1@dont-email.me>
	<lk3l8gF85pkU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 07 Sep 2024 21:05:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0d39f470079b7808f69f923e97355472";
	logging-data="1559857"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18XTx0EuOm0Y4dTmLWqqQReuAUr8/gmFws="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
 git://git.gnome.org/pan2)
Cancel-Lock: sha1:8B5rrWJ1H0pRoQRSUYWDONrNU+U=
Bytes: 1785

On Sat, 07 Sep 2024 19:44:30 +0100, Andy Burns wrote:

> 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&blah.png doesnt work
>> U%26blah.png doesnt work
>> 
>> Using php rawurlencode doesnt work. It effectively does nothing
>> 
>> Any ideas?
> http://localhost/U%26blah.txt
> 
> works here (both with IIS on win11 and apache on Fedora)

With test files white_grapes.png and white&grapes.png
(where white_grapes.png is a symlink to white&grapes.png)
both
  <img src="white_grapes.png" />
and
  <img src="white&grapes.png" />
produced proper images in Firefox, from an apache server


-- 
Lew Pitcher
"In Skills We Trust"