Tomcat 5.0.28 form post encoding problem

2004-09-17 Thread Krzysztof Cieniuch
Hi I've got problem (again)  with encoding.
Yes I've read all bugs  23929 25360 etc.
No I didn't read www.anassina.com/struts/i18n/i18n.html because I can't
reach that site don't know why server down or my connection broken???

I've got two jsp pages index.jsp and out.jsp
On index.jsp I have simple form with one text input field (the name of this
text field is "user")
on out.jsp  page  I read that input with line like this
request.getParameter("user")
and of course when I use some national characters i.e not iso-8859-1 then I
get ??? on the out.jsp page
when i use
new
String(request.getParameter("user").getBytes("ISO-8859-1"),"ISO-8859-2");
everything is ok
I've tried everything :
-setting encoding
   -- in html meta tag
   -- in jsp page tag
   -- i use method Post in that  form

nothing works the browser allways sends data encoded in ISO-8859-1
so using through all my pages syntax like this
new
String(request.getParameter("user").getBytes("ISO-8859-1"),"ISO-8859-2");
is the only solution ??
I would like to use jsp and struts tags and then this is not an option
bean:write tag also gives ??? on national characters
I've changed server.xml connector  part and added URIencoding="ISO-8859-2"
and useBodyEncodingForURI=true this either doesn't help
and since I'm sending form data in body part of the request how should this
help anyhow

HELP the lost newbi :-)))

KC


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



Re: Tomcat 5.0.28 form post encoding problem

2004-09-17 Thread Martin Schaefer

Again (there was a similar problem today), it might help to run tomcat
with -Dfile.encoding=ISO-8859-2
Or better use UTF-8 if applicable...


Krzysztof Cieniuch <[EMAIL PROTECTED]> schrieb am 17.09.2004, 16:42:36:
> Hi I've got problem (again)  with encoding.
> Yes I've read all bugs  23929 25360 etc.
> No I didn't read www.anassina.com/struts/i18n/i18n.html because I can't
> reach that site don't know why server down or my connection broken???
> 
> I've got two jsp pages index.jsp and out.jsp
> On index.jsp I have simple form with one text input field (the name of this
> text field is "user")
> on out.jsp  page  I read that input with line like this
> request.getParameter("user")
> and of course when I use some national characters i.e not iso-8859-1 then I
> get ??? on the out.jsp page
> when i use
> new
> String(request.getParameter("user").getBytes("ISO-8859-1"),"ISO-8859-2");
> everything is ok
> I've tried everything :
> -setting encoding
>-- in html meta tag
>-- in jsp page tag
>-- i use method Post in that  form
> 
> nothing works the browser allways sends data encoded in ISO-8859-1
> so using through all my pages syntax like this
> new
> String(request.getParameter("user").getBytes("ISO-8859-1"),"ISO-8859-2");
> is the only solution ??
> I would like to use jsp and struts tags and then this is not an option
> bean:write tag also gives ??? on national characters
> I've changed server.xml connector  part and added URIencoding="ISO-8859-2"
> and useBodyEncodingForURI=true this either doesn't help
> and since I'm sending form data in body part of the request how should this
> help anyhow
> 
> HELP the lost newbi :-)))
> 
> KC
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Martin Schaefer
NAXOS Software Solutions GmbH i.G.
Herrenstr. 1
69502 Hemsbach
Germany
 
Phone:+49 (0) 6201 49298-2
Mobile: +49 (0) 172 6269246
Fax: +49 (0) 6201 49298-1
Mail: [EMAIL PROTECTED]

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



Re: Tomcat 5.0.28 form post encoding problem

2004-09-20 Thread Krzysztof Cieniuch

- Original Message - 
From: "Martin Schaefer" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 17, 2004 4:54 PM
Subject: Re: Tomcat 5.0.28 form post encoding problem


>
> Again (there was a similar problem today), it might help to run tomcat
> with -Dfile.encoding=ISO-8859-2
> Or better use UTF-8 if applicable...
>
>

That didn't help what now ?? Any hint how to debug this problem what check
first ???

KC


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