Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 96279 invoked by uid 500); 17 Apr 2002 23:49:24 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 96266 invoked from network); 17 Apr 2002 23:49:24 -0000 From: "Vadim Gritsenko" To: Subject: RE: i18n repost Date: Wed, 17 Apr 2002 19:49:39 -0400 Message-ID: <02b801c1e66a$89eb0fd0$9274558b@vgritsenkopc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <007701c1e65c$0e1a5130$240b010a@vistar.ca> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Alexander Smirnoff [mailto:asmirnoff@vistar.ca] > > OK. I found the problem: > > Tomcat by default uses ISO-8859-1 encoding when you submitting > a form. So to correct the problem you have to translate it : > > String newstr = new String( name="par"/>.getBytes("ISO-8859-1")); > > Well, the question is : > > Is there any way to do this automaticly from the sitemap/cocoon.xconf > or etc.? I sense FAQ in here... Couple of days ago I suggested to other guy to use request.setCharacterEncoding("utf-8"); In XSP this will look like: request.setCharacterEncoding (check spelling with JavaDoc) String param = (Note: setCharacterEncoding must be called before any access to request's parameters! But you will read this in javadoc anyway) Or you can put setCharacterEncoding call into an action, and it will set character encoding for all XSPs at once. And there is another solution which exist since day one (or almost one ;) : String param = Vadim > I'm using Tomcat 4.0.1, Cocoon 2.0 > > Alex. > > > I know that this question maybe is not for Cocoon list. Nevertheless, > > > > I've set > > > > > > > > in the html form. > > > > When submitting the form with national characters (Russian) I recieve > > parameters in unreadable charset. I'm not good neither in HTTP nor in > > internationalization. Could anybody explain how to parse it correctly to > > convert whatever it is into correct UTF8 string? > > > > Thanks, > > Alex. --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: