Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 42706 invoked from network); 11 Apr 2008 06:23:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2008 06:23:18 -0000 Received: (qmail 41609 invoked by uid 500); 11 Apr 2008 06:23:15 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 41557 invoked by uid 500); 11 Apr 2008 06:23:14 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 41546 invoked by uid 99); 11 Apr 2008 06:23:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 23:23:14 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajalin@gmail.com designates 209.85.200.170 as permitted sender) Received: from [209.85.200.170] (HELO wf-out-1314.google.com) (209.85.200.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2008 06:22:33 +0000 Received: by wf-out-1314.google.com with SMTP id 29so346719wff.24 for ; Thu, 10 Apr 2008 23:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=ANQKbTlPk/kKJfMr9R42Z70ueOZP8Yp60JT6TmSrbko=; b=dkdC27jynV1hstrQ0MZ3Ao4TIlrzp3S80hnBA51vPbc8uXH9pXw+UgQ/1sKs3r1Zvp2mw7sinzf9DNgpw9RWJC0N58lZEBf2Pai5lxDDbfP2iL4VUN0heh/dvxZ20huHJ99CjXWqy4jp/5xV8hNm5OhSEmveVzNU7ffQDMhMyKw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=R7/Wdupo9d3mmfA9sfrDGfjtbTPBcs1vEBk2A5DhVhc9QEbz9vGSsuPmT4mqU5aFwl4oW5cUiFu1oFE6pNgOO5o3ZngJmaxQG4ltFIz8E1E5oNq+z8keE2MM3tcbe0HvXlSOmEpwTp7mIJBOFzWyG1P9EDXPTT0zXdl2Z1YIZyk= Received: by 10.142.133.15 with SMTP id g15mr713364wfd.271.1207894966308; Thu, 10 Apr 2008 23:22:46 -0700 (PDT) Received: by 10.142.157.5 with HTTP; Thu, 10 Apr 2008 23:22:46 -0700 (PDT) Message-ID: Date: Fri, 11 Apr 2008 08:22:46 +0200 From: "=?ISO-8859-1?Q?Rafa_P=E9rez?=" To: "MyFaces Discussion" Subject: Re: [Trinidad] inputText special characters In-Reply-To: <005d01c89b52$a8431010$14b2a8c0@matzenote> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18128_29747527.1207894966287" References: <47FE8091.60602@oracle.com> <005d01c89b52$a8431010$14b2a8c0@matzenote> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_18128_29747527.1207894966287 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I had the same problem. I do not know why, but in the very first request, the character encoding of the request is UTF-8 and if you have configured your application to use ISO-8859-1, it gets ignored. The only solution I found was to introduce a filter for setting the charset, something like ((HttpServletRequest)request).getSession().setAttribute(ViewHandler.CHARACTER_ENCODING_KEY, ''ISO-8859-1') HTH, -- Rafa On Thu, Apr 10, 2008 at 11:34 PM, Mathias Walter wrote: > Hi, > > > You may have ISO-8859-1 set to JSP response. > > I don't use JSP, I'm using Facelets. But I give it a try and changed the > XML > encoding. But it doesn't help. > > As soon as I submit the form, the characters will be converted. > > Why does this happens with IE and not with FF? > > Ah, I forgot to mention that form is partially submitted with a > . > > -- > Regards, > Mathias > > > Instead, please use UTF-8, like > > > > Hope this helps > > Kenneth > > > > Mathias Walter wrote: > > > Hi, > > > > > > I've some trouble with special characters (i. e. german umlauts) and > > > tr:inputText. With IE 6, the characters will be converted > > to some unreadable > > > two-byte codes, but with FF2 it works well. > > > > > > I'm using Trinidad 1.2.7, Sun JSF RI 1.2 and Facelets. > > > The head of the rendered page is > > > > > > > > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > > > > > > > How can I fix this? > > > > > > -- > > > Kind regards, > > > Mathias > > > > > > > > ------=_Part_18128_29747527.1207894966287 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I had the same problem. I do not know why, but in the very first request, the character encoding of the request is UTF-8 and if you have configured your application to use ISO-8859-1, it gets ignored.
The only solution I found was to introduce a filter for setting the charset, something like

((HttpServletRequest)request).getSession().setAttribute(ViewHandler.CHARACTER_ENCODING_KEY, ''ISO-8859-1')


HTH,

-- Rafa

On Thu, Apr 10, 2008 at 11:34 PM, Mathias Walter <mathias.walter@gmx.net> wrote:
Hi,

> You may have ISO-8859-1 set to JSP response.

I don't use JSP, I'm using Facelets. But I give it a try and changed the XML
encoding. But it doesn't help.

As soon as I submit the form, the characters will be converted.

Why does this happens with IE and not with FF?

Ah, I forgot to mention that form is partially submitted with a
<tr:commandLink "partialSubmit=true">.

--
Regards,
Mathias

> Instead, please use UTF-8, like
> <jsp:directive.page contentType="text/html;charset=UTF-8"/>
> Hope this helps
> Kenneth
>
> Mathias Walter wrote:
> > Hi,
> >
> > I've some trouble with special characters (i. e. german umlauts) and
> > tr:inputText. With IE 6, the characters will be converted
> to some unreadable
> > two-byte codes, but with FF2 it works well.
> >
> > I'm using Trinidad 1.2.7, Sun JSF RI 1.2 and Facelets.
> > The head of the rendered page is
> >
> > <?xml version="1.0" encoding="ISO-8859-1" ?>
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
> >
> > How can I fix this?
> >
> > --
> > Kind regards,
> > Mathias
> >
> >


------=_Part_18128_29747527.1207894966287--