The default uri-encoding is not UTF-8 anymore, so you cannot use "GET" unless you explicitly specify the "URIEncoding" attribute to be UTF-8 in your connector.
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html -Yan -----Original Message----- From: Christian Traber [mailto:[EMAIL PROTECTED] Sent: May 14, 2004 03:54 To: [EMAIL PROTECTED] Subject: German Umlauts in Tomcat5 Hi, following example works with tomcat 4.1.30 but makes problems with tomcat 5.0.19 on SuSE9.1: Client side: // vir.shortName = Gf�llner String username = URLEncoder.encode(vir.shortName,"UTF-8"); // ==> username = Gf%C3%BCllner HttpURLConnection huc = (HttpURLConnection) url.openConnection(); huc.setUseCaches (false); huc.setDefaultUseCaches(false); huc.setRequestMethod("GET"); huc.setRequestProperty("Content-Type", "text/plain;charset=utf-8"); ... Serlet side: // request.getCharacterEncoding() => utf-8 String username = request.getParameter("username"); // username = Gf�?llner same problem with: String username = new String(username.getBytes(),"UTF-8"); // username = Gf�?llner Any Ideas? Best Regards Christian --------------------------------------------------------------------- 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]
