X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8148B9DCDB7 for ; Thu, 12 Jan 2006 10:49:32 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53821-03 for ; Thu, 12 Jan 2006 10:49:33 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.tgds.net (tgds.net [212.100.249.157]) by postgresql.org (Postfix) with ESMTP id BAE199DCDB5 for ; Thu, 12 Jan 2006 10:49:25 -0400 (AST) Received: from hush.localdomain (localhost [127.0.0.1]) by mail.tgds.net (Postfix) with ESMTP id 230371435F0 for ; Thu, 12 Jan 2006 14:48:29 +0000 (GMT) Subject: java.net.URLEncoder.encode From: tony To: "[ADMIN]" Content-Type: text/plain; charset=ISO-8859-15 Date: Thu, 12 Jan 2006 15:49:27 +0100 Message-Id: <1137077367.3650.108.camel@hush.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.042 required=5 tests=[AWL=0.042] X-Spam-Score: 0.042 X-Spam-Level: X-Archive-Number: 200601/150 X-Sequence-Number: 20238 Hi Since migrating my application to up to date versions I have run into a new accent related problem. java.net.URLEncoder.encode is nuking French accents in URL strings. I am using an sqlEncode script for escaping accents in JDBC queries to the database. It works just fine but moving through record sets does not - the query variable that is passed to the next page is no longer escaped... The offending Dreamweaver MX code is as follows: // add the Form variables to the MM_keepForm string if (request.getParameterNames().hasMoreElements()) { java.util.Enumeration items = request.getParameterNames(); while (items.hasMoreElements()) { String nextItem = (String)items.nextElement(); boolean found = false; for (int i=0; !found && i < MM_removeList.length; i++) { if (MM_removeList[i].equals(nextItem)) found = true; } if (!found && MM_keepURL.indexOf('&' + nextItem + '=') == -1) { MM_keepForm = MM_keepForm + '&' + nextItem + '=' + java.net.URLEncoder.encode(request.getParameter(nextItem)); } } } If I convert my database to UTF-8 will this problem go away? It is currently still LATIN1 Cheers Tony -- Tony Grant www.tgds.net - vente d'ordinateurs mini-itx, hébergement: www.3continents.com - international film festival | www.chez-reine.com - gîte en Bretagne | www.haut-planty.com - Muscadet wine | www.loire-estuaire.org - GIP Loire Estuaire