๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #260

Problem with querystring special characters

#260
From: R
Date: Sun, 24 Sep 2006 10:16
27 lines
1880 bytes
Hi,
I've a problem with querystring parameters, using URLEncoder.encode(), with 
java 1.3, so method encode(String), with only a String parameter.

The first problem is about the character "&". For ex:
http://webapp/web.jsp?p1=stringa1&p2=stringa2&p3=me&you

The p3 parameter, "me&you", is retrieved by the destination jsp only as 
"me", also if I've used the method encode(). The encode parameter appaers 
like "me%**you" (where ** are characters), but in the destination page 
request.getParameter("p3") is always "me".

How I have to do to get correctly "me&you"?

Same problem with URLEncoder.encode("Novit๏ฟฝ"). The "๏ฟฝ" character is encoded 
like "%**", but the request.getParameter("__") retrieves "Novit?".

How I can do?

Thank you!


-- 
E' un mondo difficile

Rivist@ random generator:
http://www.rivistaonline.com/Rivista/ArticoliPrimoPiano.aspx?id=2720
Technical Details
Message-ID: <AWsRg.2014$Xm.79@tornado.fastwebnet.it>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!tornado.fastwebnet.it!53ab2750!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,87a715587c82a549,start
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!tornado.fastwebnet.it!53ab2750!not-for-mail
From: "R@" <r@sitoweb.rivistaonline.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Problem with querystring special characters
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
Message-ID: <AWsRg.2014$Xm.79@tornado.fastwebnet.it>
Date: Sun, 24 Sep 2006 12:16:51 +0200
NNTP-Posting-Host: 23.250.177.85
X-Complaints-To: newsmaster@fastweb.it
X-Trace: tornado.fastwebnet.it 1159093024 23.250.177.85 (Sun, 24 Sep 2006 12:17:04 CEST)
NNTP-Posting-Date: Sun, 24 Sep 2006 12:17:04 CEST