Re: URIEncoding

2011-12-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 German Starz, On 12/18/11 7:26 AM, starz10de wrote: > I a login page (it has utf-8) I checked this also manually; after > login is successful a jsp page will be called to enter the query. > This jsp page use iso encoding although inside it utf-8 is >

Re: URIEncoding

2011-12-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/17/11 9:37 AM, André Warnier wrote: > I do not see anything in the above that submits anything with an > "umlaut". The form could have additional that were not included in the OP. > This is a "GET" request, so anything submitted would

Re: URIEncoding

2011-12-19 Thread starz10de
- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://old.nabble.com/URIEncoding-tp32989250p33005252.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: URIEncoding

2011-12-18 Thread André Warnier
starz10de wrote: One of my try to solve the problem is to use utf-8 in my html page as well as in my backend. It doesn’t work because the reason was that the Browser change automatically to iso encoding. Today I checked the browser encoding before submit the query and saw that it use iso although

Re: URIEncoding

2011-12-18 Thread André Warnier
he server as UTF-8. If the server receives the request in one encoding, but is expecting another, then it will not understand the request properly, and (in your application) probably not find anything. In other words : - if you tell the server : URIencoding="UTF-8" but the requests come i

Re: URIEncoding

2011-12-18 Thread starz10de
n the server we have tomcat running and provide services for many > instances. After I played my application in the server, I had problem with > query which have special language character. After long time, I could find > where is the problem. The problem was in server.xml where the URIEnco

Re: URIEncoding

2011-12-17 Thread starz10de
"> >> >> >> >> >> >>>Try the following, directly in your browser's URL bar : >>>http://localhost:8080/Search/main?name=böse zeichen >>>(note the ö-umlaut) >>>What

Re: URIEncoding

2011-12-17 Thread starz10de
s that do ? > > it doesn't work because when I submit the query I see just the main menu > jsp in the link bar. > > Thanks for your response, is there any problem in what I mentioned? > > -- View this message in context: http://old.nabble.com/URIEncoding-tp

Re: URIEncoding

2011-12-17 Thread André Warnier
nning and provide services for many instances. After I played my application in the server, I had problem with query which have special language character. After long time, I could find where is the problem. The problem was in server.xml where the URIEncoding is set to "UTF-8". I made test and

Re: URIEncoding

2011-12-17 Thread starz10de
nguage character. After long time, I could find where is >> the >> problem. The problem was in server.xml where the URIEncoding is set to >> "UTF-8". I made test and just removed this line or set it to "ISO-8859-1" >> and all was perfect. My question here

Re: URIEncoding

2011-12-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/16/11 3:37 PM, André Warnier wrote: > 4) Thus, if your pages are UTF-8, then any link in the page which > "calls" the server, is going to send all values to the server in > the UTF-8 character set. I'm not so sure about that. Firefox ha

Re: URIEncoding

2011-12-16 Thread André Warnier
problem with query which have special language character. After long time, I could find where is the problem. The problem was in server.xml where the URIEncoding is set to "UTF-8". I made test and just removed this line or set it to "ISO-8859-1" and all was perfect. My question he

URIEncoding

2011-12-16 Thread starz10de
which have special language character. After long time, I could find where is the problem. The problem was in server.xml where the URIEncoding is set to "UTF-8". I made test and just removed this line or set it to "ISO-8859-1" and all was perfect. My question here is it

Re: URIEncoding problem ver 6.0.29 64 bit on windows

2010-12-10 Thread André Warnier
imrezol wrote: Hi! I set URIEncoding="UTF-8" at http connector in server.xml: restart tomcat service and after that type an url with special charaters like this: http://localhost:8080/mywebapp/docs/Felhasználói_kézikönyv.pdf<http://localhost:8080/mywebapp/docs/Felhaszn%C3%A1

Re: URIEncoding problem ver 6.0.29 64 bit on windows

2010-12-10 Thread imrezol
Sorry, it was my mistake. On 64 bit version webapp name was MyWebApp On 32 bit version webapp name was mywebapp On Fri, Dec 10, 2010 at 13:54, imrezol wrote: > Hi! > > I set URIEncoding="UTF-8" at http connector in server.xml: > >

URIEncoding problem ver 6.0.29 64 bit on windows

2010-12-10 Thread imrezol
Hi! I set URIEncoding="UTF-8" at http connector in server.xml: restart tomcat service and after that type an url with special charaters like this: http://localhost:8080/mywebapp/docs/Felhasználói_kézikönyv.pdf<http://localhost:8080/mywebapp/docs/Felhaszn%C3%A1l%C3%B3i_k%C3%A9zik

Re: URIEncoding UTF-16 problem

2008-08-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: > > The OP is talking about UTF-16, not UTF-8. I understand. I was trying to contrast UTF-8 and UTF-16, apparently unsuccessfully. > What you are saying above about ASCII/UTF-8 is true, if one restricts > oneself to stri

Re: URIEncoding UTF-16 problem

2008-08-15 Thread André Warnier
Replying to myself : André Warnier wrote: My own name, expressed in the Unicode alphabet and encoded in UTF-8, occupies 6 bytes, not 7. I meant "6 bytes, not 5", of course. It rather weakens my argument when I mix-up my own byte counts... --

Re: URIEncoding UTF-16 problem

2008-08-15 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: Could you tell us *why* exactly you [are trying to use UTF-16]? It is rather unusual, as it supposes that you expect all clients to encode their requested URI's in UTF-16 prior to sending the r

Re: URIEncoding UTF-16 problem

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: > Could you tell us *why* exactly you [are trying to use UTF-16]? > It is rather unusual, as it supposes that you expect all clients to > encode their requested URI's in UTF-16 prior to sending the request to > Tomcat on th

Re: URIEncoding UTF-16 problem

2008-08-15 Thread André Warnier
Nayyer Kamran wrote: Hello, I am facing problem in accessing deployed modules once I configured connector's URIEncoding to "UTF-16" in server.xml. Hi. Could you tell us *why* exactly you did set this attribute ? It is rather unusual, as it supposes that you expect all cli

URIEncoding UTF-16 problem

2008-08-15 Thread Nayyer Kamran
Hello, I am facing problem in accessing deployed modules once I configured connector's URIEncoding to "UTF-16" in server.xml. The log is showing nothing unusual but no web module is accessible and throwing http status 404.   Can you some one told me what is the reaso

Tomcat 6.0.14: Using JMX to change URIEncoding

2008-02-27 Thread Gennis Emerson
to set the URIEncoding attribute on the Tomcat connector as well. To avoid restarting Tomcat for each application configuration under test, I'm using JMX in Ant to change the value of the URIEncoding attribute for the tests for each configuration. The sequence is basically 1. Install web applic

Re: Tomcat 5.5.23 - Connector URIEncoding="UTF-8"

2008-02-13 Thread Adam Gordon
AFAIK, we had to add two things to support UTF-8 in our environment: 1. We had to add a Filter to Tomcat to set the encoding on every request to UTF-8, see this page: http://wiki.apache.org/tomcat/Tomcat/UTF-8 2. Add "JkOptions +ForwardURICompatUnparsed" to our apache config file in sites-

Tomcat 5.5.23 - Connector URIEncoding="UTF-8"

2008-02-13 Thread Bala . Satyam
hi, My application was running on Tomcat server 5.5.17 version. it was working fine with UTF-8 on this version. Now Iam using Tomcat 5.5.23 server. this version is not able to process my UTF-8 requests. I made the below changes in my server.xml, still it is not working. thanks in adv.

Re: Supporting accented characters in URL with URIEncoding=UTF-8

2007-12-04 Thread Mark Thomas
Rohit Seth wrote: > 1. Added URIEncoding="UTF-8" in connector element. > 2. Modified code to set encoding for request and response. > > After these changes we are observing following behavior: > > 1. If url doesn't contain any special character, everything is f

Supporting accented characters in URL with URIEncoding=UTF-8

2007-12-04 Thread Rohit Seth
I tried to search the issue in forum but couldn't find any solution. We need to support special characters in URL (like ます or õñü). After going through various articles we have done following changes to accomplish the same 1. Added URIEncoding="UTF-8" in connector element. 2. M

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Thanks for your help, that answers my question pretty well :) Caldarale, Charles R a écrit : From: Frederic Bastian [mailto:[EMAIL PROTECTED] Subject: Re: URIEncoding Could you tell me a bit more about how MBean can solve my problem ? I never used it. Tomcat creates MBeans for most of

RE: URIEncoding

2007-07-26 Thread Caldarale, Charles R
> From: Frederic Bastian [mailto:[EMAIL PROTECTED] > Subject: Re: URIEncoding > > Could you tell me a bit more about how MBean can solve my problem ? I > never used it. Tomcat creates MBeans for most of its internal objects, including connectors: http://tomcat.apache.org/tomcat

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Caldarale, Charles R a écrit : Once again, it's available via the MBean that Tomcat creates for each element. I'm sorry i should have missed your reply. Could you tell me a bit more about how MBean can solve my problem ? I never used it. -

RE: URIEncoding

2007-07-26 Thread Caldarale, Charles R
> From: Frederic Bastian [mailto:[EMAIL PROTECTED] > Subject: Re: URIEncoding > > how to know the Connector URIEncoding value, inside > your application ? :) Once again, it's available via the MBean that Tomcat creates for each element. - Chuck THIS COMMUNICATION MAY

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
your own tomcat server, you need to URLEncode the parameters in the same character encoding than the URIEncoding. What makes you think that the Connector has the right answer in the first place? Because it is the Connector that will read your URI ;) And so, when URLEncoding links

Re: URIEncoding

2007-07-26 Thread Christopher Schultz
elevant, here. > For instance, you > can set the response character encoding to UTF-8 in order to display > your html in UTF-8, and set the Connector URIEncoding to ISO-8859-1 to > read URI in ISO-8859-1 (and so, you have to encode your URI in ISO-8859-1). Yes, except that most brows

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
:) request.getCharacterEncoding() is different from URIEncoding. The request character encoding determines in which character encoding the parameters value will be return to you. My mistake. I meant response.getCharacterEncoding(). But it doesn't determine in wich character encoding the URI has to be

Re: URIEncoding

2007-07-26 Thread Christopher Schultz
CharacterEncoding() is different > from URIEncoding. The request character encoding > determines in which character encoding the parameters value will be > return to you. My mistake. I meant response.getCharacterEncoding(). > But it doesn't determine in wich character encoding

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Christopher Schultz a écrit : You want to do this: java.net.URLEncoder.encode(myParam, request.getCharacterEncoding()); This does not work :) request.getCharacterEncoding() is different from URIEncoding. The request character encoding determines in wich character encodig the parameters

Re: URIEncoding

2007-07-26 Thread Christopher Schultz
atever Tomcat (or the browser) is using for URIEncoding. You want to do this: java.net.URLEncoder.encode(myParam, request.getCharacterEncoding()); Or, you could do what everybody else in the world does and use a tag library or some other tool to emit URLs including parameters, etc. - -chris ---

Re: URIEncoding

2007-07-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Frederic Bastian [mailto:[EMAIL PROTECTED] >> Subject: Re: URIEncoding >> >> Is there a way to get the value of the param URIEncoding of the >> Connector, so your cod

Re: URIEncoding

2007-07-26 Thread Christopher Schultz
; > By default, Tomcat will read this url in ISO-8859-1. Yes, but you said that you changed the to use UTF-8. Is it not working? Or, are you looking for an alternative so that you don't /have to/ set the 's URIEncoding? > If I add into server.xml the attribut URIEncoding=

RE: URIEncoding

2007-07-26 Thread Caldarale, Charles R
> From: Frederic Bastian [mailto:[EMAIL PROTECTED] > Subject: Re: URIEncoding > > The point is that I need to use the > java.net.URLEncoder.encode() method, > e.g. java.net.URLEncoder.encode(myParam, "UTF-8"). O.k., so now it appears you need to know the encoding i

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Caldarale, Charles R a écrit : From: Frederic Bastian [mailto:[EMAIL PROTECTED] Subject: Re: URIEncoding Is there a way to get the value of the param URIEncoding of the Connector, so your code will work, whatever the char encoding of the Connector is ? I'm confused. If the al

RE: URIEncoding

2007-07-26 Thread Caldarale, Charles R
> From: Frederic Bastian [mailto:[EMAIL PROTECTED] > Subject: Re: URIEncoding > > Is there a way to get the value of the param URIEncoding of the > Connector, so your code will work, whatever the char encoding of the > Connector is ? I'm confused. If the already has

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Thx a lot Pulkit, it works just fine. But my aim is to make portability easier ; What happens if the URIEncoding of the Connector is not "UTF-8" or "ISO-8859-1", but a different char encoding ? Your pseudo-code won't work anymore :( Is there a way to get the value of

Re: URIEncoding

2007-07-26 Thread Pulkit Singhal
uest.getParameter("query") will return an incorrect value. The solution you proposed won't help Tomcat to return a correct value with the "getParameter" method. If I add into server.xml the attribut URIEncoding="UTF-8" to the Connector, Tomcat will correctly read

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
1. So HttpServletRequest.getParameter("query") will return an incorrect value. The solution you proposed won't help Tomcat to return a correct value with the "getParameter" method. If I add into server.xml the attribut URIEncoding="UTF-8" to the Connector, Tomcat will correctly

Re: URIEncoding

2007-07-26 Thread Pulkit Singhal
Hi Frederic, I don't know about HttpSession. for settign the URIEncoding. But you could always do somethign along the lines of: String uri_utf8 = new String (uri.getBytes("iso-8859-1"), "UTF-8"); inside the application. On 7/26/07, Frederic Bastian <[EMAIL PROTECTE

URIEncoding

2007-07-26 Thread Frederic Bastian
Hi folks :) I need my URI to be in UTF-8. In server.xml, I added to the Connector the attribut : URIEncoding="UTF-8" This works well. But my question is : Is there a way to define the URIEncoding in the application itself ? For instance, you can modify the session timeout in the a

Re: URIEncoding and POSTS

2006-09-13 Thread Mark Thomas
Mike Wannamaker wrote: > I can specify URIEncoding="UTF-8" in Tomcat's connector settings within the > server.xml file. Now, my Tomcat server correctly reads the URL GET > parameters correctly...sending out "Hello, José!" or "Hello, 田中!" as > e

RE: URIEncoding and POSTS

2006-09-12 Thread Derrick Koes
+ encoding); request.setCharacterEncoding(encoding); // move on to the next chain.doFilter(request, response); } -Original Message- From: Mike Wannamaker [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 4:51 PM To: 'Tomcat Users List' Subject: URIEncoding and P

URIEncoding and POSTS

2006-09-12 Thread Mike Wannamaker
I can specify URIEncoding="UTF-8" in Tomcat's connector settings within the server.xml file. Now, my Tomcat server correctly reads the URL GET parameters correctly...sending out "Hello, José!" or "Hello, 田中!" as expected. However, there's still a problem