Well if you're not stupid you'll put the filter over JSF servlet ONLY.
I suggest using a phaseListener instead of a filter. if you use a
filter it will mess up the css files( effects mozilla) the sample
phaseListener is in the facelets wiki
On 3/23/06, * Alexander Panzhin* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
If you're using Facelets the only way is making a filter and
adding two
silmple lines:
request.setCharacterEncoding(encoding);
response.setCharacterEncoding(encoding);
Where encoding is the String "UTF-8".
> Hi !!!
> I have a lot of troubles with encoding UTF-8 and in particular
when I
> post some data by forms.
> When I write the post received data in a page I cannot see the right
> characters.
> For example:
>
> Name: ่่่ (three "e" with an accent)
> Surname: ่่่
>
> I get the following output: รจรจรจ
>
> The same proble when I use cyrillic alphabet.
> I want to precise that every page has the following header:
>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
> <meta http-equiv="Pragma-directive" content="no-cache">
> <meta http-equiv="Cache-directive" content="no-cache">
> </head>
> ...
>
> Could you please give me a tip ?
>
> Thank you in advance,
> nicola
>
>
>
> ---
>
> Questa mail ed eventuali suoi allegati sono strettamente
> confidenziali. Se
> ricevete per errore questa mail, Vi preghiamo cortesemente di
cancellarla
> immediatamente e di segnalare l'errore a chi ve l'ha spedita. Se Voi
> non siete
> il reale destinatario di questa mail non siete autorizzati alla
copia,
> alla
> distribuzione e alla stampa di essa ne tantomeno ad una eventuale
> modifica
> dei contenuti.
>
> This message and any attachments are confidential and intended
solely for
> the addressees. If you receive this message in error, please
delete it
> and
> immediately notify the sender. If the reader of this message is
not the
> intended recipient, you are hereby notified that any
unauthorized use,
> copying, publication, printing or dissemination is prohibited.
E-mails
> are
> susceptible to alteration.
>
--
Su pagarba,
Aleksandr Panzin
IT sistemu architektas.
With best regards,
Alexander Panzhin
IT systems architect
--
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.
--
Su pagarba,
Aleksandr Panzin
IT sistemu architektas.
With best regards,
Alexander Panzhin
IT systems architect
smime.p7s
Description: S/MIME Cryptographic Signature

