Re: request.getParameter() in JSP misinterpreting foreign characters

2007-02-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ramez, Ramez Ghazzaoui wrote: Thank you guys. Sounds like I need to either write or find a method that converts strings to UTF-8. I'll try this tomorrow. Generally, java.net.URLEncoder.encode(yourString, UTF-8) will do this for you quite well. No

request.getParameter() in JSP misinterpreting foreign characters

2007-02-19 Thread Ramez Ghazzaoui
Hi, Back in May 2006, I had trouble Configuring Tomcat HTTP server to generate proper links for non-English file names in a Directory Listing. Mr. Mark Thomas proposed a solution that worked: He told me to set URIEncoding=UTF-8 in the connector (presumably in server.xml). This fixed the

Re: request.getParameter() in JSP misinterpreting foreign characters

2007-02-19 Thread Mark Thomas
Ramez Ghazzaoui wrote: Is there a way to make French characters work both in Directory Listings and in GET parameters? All your pages need to include the following at the start: %@ page pageEncoding=UTF-8 % The correct UTF-8 encoding for your request is: http://localhost/main.jsp?path=ol%C3%A9

Re: request.getParameter() in JSP misinterpreting foreign characters

2007-02-19 Thread Markus Schönhaber
Ramez Ghazzaoui wrote: Today I realized that this very solution has broken the Java request.getParameter() method in JSP. Now, with the URIEncoding set to UTF-8, this Java method is misinterpreting non-English characters. When I invoke from the browser the following address:

Re: request.getParameter() in JSP misinterpreting foreign characters

2007-02-19 Thread Ramez Ghazzaoui
Thank you guys. Sounds like I need to either write or find a method that converts strings to UTF-8. I'll try this tomorrow. BTW I am not using HTML forms, just building URIs dynamically and sticking them into a href=... anchors. That's where the GET part comes into play :) Cheers, -Ramez