Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 21391 invoked by uid 500); 26 Apr 2001 10:33:42 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 21359 invoked from network); 26 Apr 2001 10:33:41 -0000 Received: from binky.de.uu.net (192.76.144.28) by h31.sny.collab.net with SMTP; 26 Apr 2001 10:33:41 -0000 Received: from software.b.uunet.de (pec-84-195.tnt6.m2.uunet.de [149.225.84.195]) by binky.de.uu.net (5.5.5/5.5.5) with ESMTP id MAA04702 for ; Thu, 26 Apr 2001 12:01:06 +0200 (MET DST) Message-ID: <3AE7EC91.706EA57A@software.b.uunet.de> Date: Thu, 26 Apr 2001 11:38:25 +0200 From: Andreas Schlegel X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: Encoding URL fails References: <3AE476FC.60821095@software.b.uunet.de> <3AE554A4.6F5468D7@dorf.rwth-aachen.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Thanks for help. It is running now :-) Greetings, Andreas Wolle wrote: > hello, > you could make a workaround. > simple useurl = encodeURL("url") + "¶meter=bla"; > > Greetings, > WOlle > > Andreas Schlegel wrote: > > > Hi, > > > > I have a problem encoding a string containing the character '&' and put > > it as param in an URL > > > > If I encode A&P the URLEncoder.encode(value) returns A%26P. But if I put > > this result string as parameter in an URL, the URL contains A&P. So what > > can I do to have the encoded value in the URL? > > > > I am a little bit confused because if I do the same using a string > > containing the character '?' everything is fine! > > > > Greetings, > > Andreas