Re: JSPGen. RequestParameter Encoding

2003-09-19 Thread
On Fri, 19 Sep 2003 09:00:44 +0200
 Christoph Strehl [EMAIL PROTECTED] wrote:
Hello again,

special characters in the request parameter in my JSP are somehow
encrypted and even using java.net.URLDecoder.decode() doesn't change
that. I tried to set the encoding to ISO-8859-1 but it didn't work 
at
all. Has anyone had a similar problem yet? 

I am grateful for any hint.

Christoph



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,Christoph!

My experience small in use JSP, if you asked, how inquiry with HTML as 
Parameter name = query to receive with the coding distinct from 
ISO-8859-1, I did(made) it as follows:

myfile.jsp:
...
String requestEnc = request.getCharacterEncoding();
if( requestEnc==null ) requestEnc=ISO-8859-1;
String clientEnc = request.getParameter(charset);
if( clientEnc==null ) clientEnc=Cp1251;
String queryString = new 
String(request.getParameter(query).getBytes(requestEnc),clientEnc);
...

Vladimir Yuryev.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JSPGen. RequestParameter Encoding

2003-09-19 Thread Jeff Ramsdale
Tony ( others),

Is this the same problem we talked about last week on wsproxy parameter
encoding?
http://archives.real-time.com/pipermail/cocoon-users/2003-September/038837.h
tml
That thread was left hanging.

Jeff

 -Original Message-
 From: Christoph Strehl [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 12:01 AM
 To: [EMAIL PROTECTED]
 Subject: JSPGen. RequestParameter Encoding


 Hello again,

 special characters in the request parameter in my JSP are somehow
 encrypted and even using java.net.URLDecoder.decode() doesn't change
 that. I tried to set the encoding to ISO-8859-1 but it didn't work at
 all. Has anyone had a similar problem yet?

 I am grateful for any hint.

 Christoph



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSPGen. RequestParameter Encoding

2003-09-19 Thread Tony Collen
Jeff Ramsdale wrote:
Tony ( others),

Is this the same problem we talked about last week on wsproxy parameter
encoding?
http://archives.real-time.com/pipermail/cocoon-users/2003-September/038837.h
tml
That thread was left hanging.
Hrm.. it seems similar, but I'm not too sure.  As far as the wsproxy, goes, perhaps we can try to 
track down where the spaces are being fiddled with.  I would be curious to find out if the wsproxy 
generator is changing the spaces or if it's coming from somewhere else.

Tony

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]