Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 55891 invoked from network); 1 Mar 2004 08:49:19 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Mar 2004 08:49:19 -0000 Received: (qmail 71383 invoked by uid 500); 1 Mar 2004 08:48:37 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 71355 invoked by uid 500); 1 Mar 2004 08:48:37 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 71342 invoked from network); 1 Mar 2004 08:48:37 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.185) by daedalus.apache.org with SMTP; 1 Mar 2004 08:48:37 -0000 Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1Axj6X-0004kk-00 for struts-user@jakarta.apache.org; Mon, 01 Mar 2004 09:48:49 +0100 Received: from [217.88.250.113] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1Axj6X-0003bX-00 for struts-user@jakarta.apache.org; Mon, 01 Mar 2004 09:48:49 +0100 Message-ID: <4042F88C.1060902@cyberspaceroad.com> Date: Mon, 01 Mar 2004 09:47:08 +0100 From: Adam Hardy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031021 X-Accept-Language: de MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Problems with UTF-8 and forms References: <4041E6FC.8060908@cyberspaceroad.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:7be52423742ce504c1b541fa1f258887 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On 03/01/2004 12:29 AM Jon Bohm wrote: > BUT if I rewrite my custombean's getValue method it all works fine (except > for swedish uppercase letters): > > public String getValue() > { > return new String( value.getBytes(), "UTF-8"); > } Still shouldn't be necessary. > Apache Tomcat/5.0.12 > Java 1.4.2_01-b06 > Struts 1.1 (I think - how do I check?) > Windows XP (I know, I'm a Linuxdude gone bad) Open up struts.jar in winzip or something and view META-INF/MANIFEST.mf - check implementation-version. So what does the debugging say at the end of your JSPs? Is your response UTF-8 or iso-xxxx encoded? I bet it says the page content-type is still iso-8859. How are you setting your struts controller parameter (in struts-config.xml): Do you have any locale-encoding-mapping-list in your web.xml? You don't need it with UTF-8. You also don't need to specify it in any jsp-property-group since the struts controller will handle it. >>>http://www.anassina.com/struts/i18n/i18n.html >> >>Good link, but getting a little out-of-date now. > > > You have a better one? :) I wish! If you get this solved, we can condense this thread and post it in the struts wikki. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org