-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Frederic,
Frederic Bastian wrote: > 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 <Connector> 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 > read. But you aren't reading a URI. You're writing one. I'm assuming that you want to encode a URI for output into a web page. The web page ought to be written using the response's encoding, not the URIEncoding. > What's the problem with URLEncoder ? I don't get you :) Nothing. All the things I mentioned used them at the heart (or should). They just take out the guesswork of which encoding you should be using, and when to apply it. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGqQJ29CaO5/Lv0PARAuhvAJ9vmHBfszi95wQyVlV2o36yZ4N8SQCfTqKN puaAISUt3/OrGna00/8dvk4= =B73f -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]