You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Zsolt Koppany <zk...@web.de> on 2002/03/01 18:22:33 UTC

URL Problem with blanks in names

Hi,

how can I create a link (<A HREF...) to a file with blank in either the 
directory or in the filename?

I mean for example: <A HREF="/images/a b.gif">Open</A>

I tried to create the link using URLEncoder.encode(..) but the created link 
didn't work either.

Zsolt

-- 
Zsolt Koppany

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: URL Problem with blanks in names

Posted by "W. D." <WD...@US-Webmasters.com>.
You can just put in a %20 and get it to work:
http://www.pixelfreak.net/test%20patterns/indian_h.jpg

The author is violating one of the main rules of web
design: no spaces in file names or directories

At 22:24 3/3/2002, Scott Ahten, wrote:
>humm... the link on this page only works in netscape 6 and internet 
>explorer. it gives me a 404 in netscape 4.7.6.
>
>http://www.pixelfreak.net/test_pattern.html

Start Here to Find It Fast!© -> http://www.US-Webmasters.com/start.htm


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: URL Problem with blanks in names

Posted by Scott Ahten <pi...@pixelfreak.net>.
humm... the link on this page only works in netscape 6 and internet 
explorer. it gives me a 404 in netscape 4.7.6.

http://www.pixelfreak.net/test_pattern.html

the link is defined as <a href="test patterns/indian_h.jpg">view test 
pattern</a>

~scott

Lev Assinovsky wrote:

>I use Netscape Communicator 4.76 but it doesn't matter.
>If you use quotes (") then you don't need encoding. And my Netscape
>doesn't do it.
>
>Scott Ahten wrote:
>
>>I'm not sure about Netscape 6/Mozilla, but older versions of Netscape
>>4.x do not automaticly encode URLs before sending to the server.
>>Internet Explorer does, which usualy causes lots of confusion when
>>testing across diffrent browsers.
>>
>>~Scott
>>
>>Lev Assinovsky wrote:
>>
>>><A HREF="/images/a b.gif">Open</A> works for me (Netscape).
>>>
>>>WebMaster wrote:
>>>
>>>>Just use cascading ASCII (blank = 20):
>>>>like http://www.testside.de/test%20this%20tile.html
>>>>
>>>>----- Original Message -----
>>>>From: "Zsolt Koppany" <zk...@web.de>
>>>>To: <to...@jakarta.apache.org>
>>>>Sent: Friday, March 01, 2002 6:22 PM
>>>>Subject: URL Problem with blanks in names
>>>>
>>>>>Hi,
>>>>>
>>>>>how can I create a link (<A HREF...) to a file with blank in either the
>>>>>directory or in the filename?
>>>>>
>>>>>I mean for example: <A HREF="/images/a b.gif">Open</A>
>>>>>
>>>>>I tried to create the link using URLEncoder.encode(..) but the created
>>>>>
>>>>link
>>>>
>>>>>didn't work either.
>>>>>
>>>>>Zsolt
>>>>>
>>>>>--
>>>>>Zsolt Koppany
>>>>>
>>>>>--
>>>>>To unsubscribe:   <ma...@jakarta.apache.org>
>>>>>For additional commands: <ma...@jakarta.apache.org>
>>>>>Troubles with the list: <ma...@jakarta.apache.org>
>>>>>
>>>>>
>>>>--
>>>>To unsubscribe:   <ma...@jakarta.apache.org>
>>>>For additional commands: <ma...@jakarta.apache.org>
>>>>Troubles with the list: <ma...@jakarta.apache.org>
>>>>
>>>--
>>>Lev Assinovsky                Peterlink Web
>>>Programmer                    St. Petersburg, Russia
>>>Tel/Fax: +7 812 3275343       197022 ul.Chapigina 7а
>>>E-mail: lev@peterlink.ru
>>>
>>>
>>>
>>>
>>>--
>>>To unsubscribe:   <ma...@jakarta.apache.org>
>>>For additional commands: <ma...@jakarta.apache.org>
>>>Troubles with the list: <ma...@jakarta.apache.org>
>>>
>>>
>>>
>>>
>>--
>>To unsubscribe:   <ma...@jakarta.apache.org>
>>For additional commands: <ma...@jakarta.apache.org>
>>Troubles with the list: <ma...@jakarta.apache.org>
>>
>
>--
>Lev Assinovsky                Peterlink Web
>Programmer                    St. Petersburg, Russia
>Tel/Fax: +7 812 3275343       197022 ul.Chapigina 7а
>E-mail: lev@peterlink.ru
>
>
>
>
>--
>To unsubscribe:   <ma...@jakarta.apache.org>
>For additional commands: <ma...@jakarta.apache.org>
>Troubles with the list: <ma...@jakarta.apache.org>
>
>
>
>




--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: URL Problem with blanks in names

Posted by Lev Assinovsky <le...@peterlink.ru>.
I use Netscape Communicator 4.76 but it doesn't matter.
If you use quotes (") then you don't need encoding. And my Netscape
doesn't do it.

Scott Ahten wrote:

> I'm not sure about Netscape 6/Mozilla, but older versions of Netscape
> 4.x do not automaticly encode URLs before sending to the server.
> Internet Explorer does, which usualy causes lots of confusion when
> testing across diffrent browsers.
>
> ~Scott
>
> Lev Assinovsky wrote:
>
> ><A HREF="/images/a b.gif">Open</A> works for me (Netscape).
> >
> >WebMaster wrote:
> >
> >>Just use cascading ASCII (blank = 20):
> >>like http://www.testside.de/test%20this%20tile.html
> >>
> >>----- Original Message -----
> >>From: "Zsolt Koppany" <zk...@web.de>
> >>To: <to...@jakarta.apache.org>
> >>Sent: Friday, March 01, 2002 6:22 PM
> >>Subject: URL Problem with blanks in names
> >>
> >>>Hi,
> >>>
> >>>how can I create a link (<A HREF...) to a file with blank in either the
> >>>directory or in the filename?
> >>>
> >>>I mean for example: <A HREF="/images/a b.gif">Open</A>
> >>>
> >>>I tried to create the link using URLEncoder.encode(..) but the created
> >>>
> >>link
> >>
> >>>didn't work either.
> >>>
> >>>Zsolt
> >>>
> >>>--
> >>>Zsolt Koppany
> >>>
> >>>--
> >>>To unsubscribe:   <ma...@jakarta.apache.org>
> >>>For additional commands: <ma...@jakarta.apache.org>
> >>>Troubles with the list: <ma...@jakarta.apache.org>
> >>>
> >>>
> >>--
> >>To unsubscribe:   <ma...@jakarta.apache.org>
> >>For additional commands: <ma...@jakarta.apache.org>
> >>Troubles with the list: <ma...@jakarta.apache.org>
> >>
> >
> >--
> >Lev Assinovsky                Peterlink Web
> >Programmer                    St. Petersburg, Russia
> >Tel/Fax: +7 812 3275343       197022 ul.Chapigina 7а
> >E-mail: lev@peterlink.ru
> >
> >
> >
> >
> >--
> >To unsubscribe:   <ma...@jakarta.apache.org>
> >For additional commands: <ma...@jakarta.apache.org>
> >Troubles with the list: <ma...@jakarta.apache.org>
> >
> >
> >
> >
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>

--
Lev Assinovsky                Peterlink Web
Programmer                    St. Petersburg, Russia
Tel/Fax: +7 812 3275343       197022 ul.Chapigina 7а
E-mail: lev@peterlink.ru




--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: URL Problem with blanks in names

Posted by Scott Ahten <pi...@pixelfreak.net>.
I'm not sure about Netscape 6/Mozilla, but older versions of Netscape 
4.x do not automaticly encode URLs before sending to the server. 
Internet Explorer does, which usualy causes lots of confusion when 
testing across diffrent browsers.

~Scott


Lev Assinovsky wrote:

><A HREF="/images/a b.gif">Open</A> works for me (Netscape).
>
>WebMaster wrote:
>
>>Just use cascading ASCII (blank = 20):
>>like http://www.testside.de/test%20this%20tile.html
>>
>>----- Original Message -----
>>From: "Zsolt Koppany" <zk...@web.de>
>>To: <to...@jakarta.apache.org>
>>Sent: Friday, March 01, 2002 6:22 PM
>>Subject: URL Problem with blanks in names
>>
>>>Hi,
>>>
>>>how can I create a link (<A HREF...) to a file with blank in either the
>>>directory or in the filename?
>>>
>>>I mean for example: <A HREF="/images/a b.gif">Open</A>
>>>
>>>I tried to create the link using URLEncoder.encode(..) but the created
>>>
>>link
>>
>>>didn't work either.
>>>
>>>Zsolt
>>>
>>>--
>>>Zsolt Koppany
>>>
>>>--
>>>To unsubscribe:   <ma...@jakarta.apache.org>
>>>For additional commands: <ma...@jakarta.apache.org>
>>>Troubles with the list: <ma...@jakarta.apache.org>
>>>
>>>
>>--
>>To unsubscribe:   <ma...@jakarta.apache.org>
>>For additional commands: <ma...@jakarta.apache.org>
>>Troubles with the list: <ma...@jakarta.apache.org>
>>
>
>--
>Lev Assinovsky                Peterlink Web
>Programmer                    St. Petersburg, Russia
>Tel/Fax: +7 812 3275343       197022 ul.Chapigina 7а
>E-mail: lev@peterlink.ru
>
>
>
>
>--
>To unsubscribe:   <ma...@jakarta.apache.org>
>For additional commands: <ma...@jakarta.apache.org>
>Troubles with the list: <ma...@jakarta.apache.org>
>
>
>
>




--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: URL Problem with blanks in names

Posted by Lev Assinovsky <le...@peterlink.ru>.
<A HREF="/images/a b.gif">Open</A> works for me (Netscape).

WebMaster wrote:

> Just use cascading ASCII (blank = 20):
> like http://www.testside.de/test%20this%20tile.html
>
> ----- Original Message -----
> From: "Zsolt Koppany" <zk...@web.de>
> To: <to...@jakarta.apache.org>
> Sent: Friday, March 01, 2002 6:22 PM
> Subject: URL Problem with blanks in names
>
> > Hi,
> >
> > how can I create a link (<A HREF...) to a file with blank in either the
> > directory or in the filename?
> >
> > I mean for example: <A HREF="/images/a b.gif">Open</A>
> >
> > I tried to create the link using URLEncoder.encode(..) but the created
> link
> > didn't work either.
> >
> > Zsolt
> >
> > --
> > Zsolt Koppany
> >
> > --
> > To unsubscribe:   <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> >
> >
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>

--
Lev Assinovsky                Peterlink Web
Programmer                    St. Petersburg, Russia
Tel/Fax: +7 812 3275343       197022 ul.Chapigina 7а
E-mail: lev@peterlink.ru




--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: URL Problem with blanks in names

Posted by WebMaster <we...@edeltech.de>.
Just use cascading ASCII (blank = 20):
like http://www.testside.de/test%20this%20tile.html

----- Original Message -----
From: "Zsolt Koppany" <zk...@web.de>
To: <to...@jakarta.apache.org>
Sent: Friday, March 01, 2002 6:22 PM
Subject: URL Problem with blanks in names


> Hi,
>
> how can I create a link (<A HREF...) to a file with blank in either the
> directory or in the filename?
>
> I mean for example: <A HREF="/images/a b.gif">Open</A>
>
> I tried to create the link using URLEncoder.encode(..) but the created
link
> didn't work either.
>
> Zsolt
>
> --
> Zsolt Koppany
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: URL Problem with blanks in names

Posted by j-y ciccoli <jy...@fluxus.net>.
sorry, it's %20 instead of %

----- Original Message ----- 
From: "j-y ciccoli" <jy...@fluxus.net>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, March 01, 2002 6:46 PM
Subject: Re: URL Problem with blanks in names


> try to replace your blanks by the character '%'
> 
> ----- Original Message -----
> From: "Zsolt Koppany" <zk...@web.de>
> To: <to...@jakarta.apache.org>
> Sent: Friday, March 01, 2002 6:22 PM
> Subject: URL Problem with blanks in names
> 
> 
> > Hi,
> >
> > how can I create a link (<A HREF...) to a file with blank in either the
> > directory or in the filename?
> >
> > I mean for example: <A HREF="/images/a b.gif">Open</A>
> >
> > I tried to create the link using URLEncoder.encode(..) but the created
> link
> > didn't work either.
> >
> > Zsolt
> >
> > --
> > Zsolt Koppany
> >
> > --
> > To unsubscribe:   <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
> 
> 


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: URL Problem with blanks in names

Posted by j-y ciccoli <jy...@fluxus.net>.
try to replace your blanks by the character '%'

----- Original Message -----
From: "Zsolt Koppany" <zk...@web.de>
To: <to...@jakarta.apache.org>
Sent: Friday, March 01, 2002 6:22 PM
Subject: URL Problem with blanks in names


> Hi,
>
> how can I create a link (<A HREF...) to a file with blank in either the
> directory or in the filename?
>
> I mean for example: <A HREF="/images/a b.gif">Open</A>
>
> I tried to create the link using URLEncoder.encode(..) but the created
link
> didn't work either.
>
> Zsolt
>
> --
> Zsolt Koppany
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>