You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Vladimir Coutinho <vl...@gmail.com> on 2006/05/31 16:55:51 UTC
Portuguese
I'm having problems whit jsf. My language is portuguese. When use some
outputText like "Exclusão" the jsf sends to browser
"Exclusão". No problem if is part of the html, but when text like that
are in a javascript message (like alert("")), it apears to the user
"Exclusão". How to solve it?
I'm using MyFaces Core 1.1.3,MyFaces Tomahawk 1.1.2.
Server Information Tomcat Version JVM Version JVM Vendor OS Name OS Version OS
Architecture Apache Tomcat/5.5.12 1.5.0_05-b05 Sun Microsystems Inc. Windows
2000 5.0 x86
--
Vladimir M Coutinho
Re: Portuguese
Posted by Vladimir Coutinho <vl...@gmail.com>.
I defined <%@page pageEncoding="UTF-8"%>. It worked. Thanks.
On 5/31/06, Rogerio Pereira <ro...@gmail.com> wrote:
>
> use UTF-8 as encoding
>
> 2006/5/31, Vladimir Coutinho <vl...@gmail.com>:
>
> > I'm having problems whit jsf. My language is portuguese. When use some
> > outputText like "Exclusão" the jsf sends to browser
> > "Exclusão". No problem if is part of the html, but when text like
> > that are in a javascript message (like alert("")), it apears to the user
> > "Exclusão". How to solve it?
> >
> > I'm using MyFaces Core 1.1.3,MyFaces Tomahawk 1.1.2.
> >
> > Server Information Tomcat Version JVM Version JVM Vendor OS Name OS
> > Version OS Architecture Apache Tomcat/5.5.12 1.5.0_05-b05 Sun
> > Microsystems Inc. Windows 2000 5.0 x86
> >
> >
> > --
> > Vladimir M Coutinho
> >
>
>
>
> --
> Yours truly (Atenciosamente),
>
> Rogério
>
--
Vladimir M Coutinho
Re: Portuguese
Posted by Rafael Nami <ra...@gmail.com>.
PS - Add this to the web.xml
Regards
Rafael Nami
2006/5/31, Rafael Nami <ra...@gmail.com>:
>
> I use Spring with JSF to force encoding to UTF8. You can do it adding
> this:
>
> <
> filter>
> <filter-name >encodingFilter</filter-name>
> < filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class
> >
> <init-param>
> <param-name>encoding</param-name >
> <param-value>UTF-8 </param-value>
> </init-param >
> <init-param>
> < param-name>forceEncoding</param-name>
> <param-value>true</ param-value>
> </init-param>
> </filter>
>
>
>
> Regards
>
>
>
> Rafael Mauricio Nami
>
>
>
> 2006/5/31, Mert Çalışkan <mc...@gmail.com>:
>
> > Your resource bundles should also be converted to UTF-8. Here is a
> > blogpost about implementing a Custom Filter for character encoding and an
> > ant target for compiling resource bundles..
> >
> > http://www.jroller.com/page/mert?entry=utf_8_encoding_with_jsf
> >
> > Regards,
> >
> > Mert
> >
> >
> > On 5/31/06, Rogerio Pereira <rogerio.araujo@gmail.com > wrote:
> > >
> > > use UTF-8 as encoding
> > >
> > > 2006/5/31, Vladimir Coutinho <vl...@gmail.com>:
> > >
> > > > I'm having problems whit jsf. My language is portuguese. When use
> > > > some outputText like "Exclusão" the jsf sends to browser
> > > > "Exclusão". No problem if is part of the html, but when text
> > > > like that are in a javascript message (like alert("")), it apears to the
> > > > user "Exclusão". How to solve it?
> > > >
> > > > I'm using MyFaces Core 1.1.3,MyFaces Tomahawk 1.1.2.
> > > >
> > > > Server Information Tomcat Version JVM Version JVM Vendor OS Name OS
> > > > Version OS Architecture Apache Tomcat/5.5.12 1.5.0_05-b05 Sun
> > > > Microsystems Inc. Windows 2000 5.0 x86
> > > >
> > > >
> > > > --
> > > > Vladimir M Coutinho
> > > >
> > >
> > >
> > >
> > > --
> > > Yours truly (Atenciosamente),
> > >
> > > Rogério
> > >
> >
> >
>
>
Re: Portuguese
Posted by Rafael Nami <ra...@gmail.com>.
I use Spring with JSF to force encoding to UTF8. You can do it adding this:
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</
filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
Regards
Rafael Mauricio Nami
2006/5/31, Mert Çalışkan <mc...@gmail.com>:
>
> Your resource bundles should also be converted to UTF-8. Here is a
> blogpost about implementing a Custom Filter for character encoding and an
> ant target for compiling resource bundles..
>
> http://www.jroller.com/page/mert?entry=utf_8_encoding_with_jsf
>
> Regards,
>
> Mert
>
>
> On 5/31/06, Rogerio Pereira <ro...@gmail.com> wrote:
> >
> > use UTF-8 as encoding
> >
> > 2006/5/31, Vladimir Coutinho <vl...@gmail.com>:
> >
> > > I'm having problems whit jsf. My language is portuguese. When use some
> > > outputText like "Exclusão" the jsf sends to browser
> > > "Exclusão". No problem if is part of the html, but when text like
> > > that are in a javascript message (like alert("")), it apears to the user
> > > "Exclusão". How to solve it?
> > >
> > > I'm using MyFaces Core 1.1.3,MyFaces Tomahawk 1.1.2.
> > >
> > > Server Information Tomcat Version JVM Version JVM Vendor OS Name OS
> > > Version OS Architecture Apache Tomcat/5.5.12 1.5.0_05-b05 Sun
> > > Microsystems Inc. Windows 2000 5.0 x86
> > >
> > >
> > > --
> > > Vladimir M Coutinho
> > >
> >
> >
> >
> > --
> > Yours truly (Atenciosamente),
> >
> > Rogério
> >
>
>
Re: Portuguese
Posted by Mert Çalışkan <mc...@gmail.com>.
Your resource bundles should also be converted to UTF-8. Here is a blogpost
about implementing a Custom Filter for character encoding and an ant target
for compiling resource bundles..
http://www.jroller.com/page/mert?entry=utf_8_encoding_with_jsf
Regards,
Mert
On 5/31/06, Rogerio Pereira <ro...@gmail.com> wrote:
>
> use UTF-8 as encoding
>
> 2006/5/31, Vladimir Coutinho <vl...@gmail.com>:
>
> > I'm having problems whit jsf. My language is portuguese. When use some
> > outputText like "Exclusão" the jsf sends to browser
> > "Exclusão". No problem if is part of the html, but when text like
> > that are in a javascript message (like alert("")), it apears to the user
> > "Exclusão". How to solve it?
> >
> > I'm using MyFaces Core 1.1.3,MyFaces Tomahawk 1.1.2.
> >
> > Server Information Tomcat Version JVM Version JVM Vendor OS Name OS
> > Version OS Architecture Apache Tomcat/5.5.12 1.5.0_05-b05 Sun
> > Microsystems Inc. Windows 2000 5.0 x86
> >
> >
> > --
> > Vladimir M Coutinho
> >
>
>
>
> --
> Yours truly (Atenciosamente),
>
> Rogério
>
Re: Portuguese
Posted by Rogerio Pereira <ro...@gmail.com>.
use UTF-8 as encoding
2006/5/31, Vladimir Coutinho <vl...@gmail.com>:
>
> I'm having problems whit jsf. My language is portuguese. When use some
> outputText like "Exclusão" the jsf sends to browser
> "Exclusão". No problem if is part of the html, but when text like
> that are in a javascript message (like alert("")), it apears to the user
> "Exclusão". How to solve it?
>
> I'm using MyFaces Core 1.1.3,MyFaces Tomahawk 1.1.2.
>
> Server Information Tomcat Version JVM Version JVM Vendor OS Name OS
> Version OS Architecture Apache Tomcat/5.5.12 1.5.0_05-b05 Sun Microsystems
> Inc. Windows 2000 5.0 x86
>
>
> --
> Vladimir M Coutinho
>
--
Yours truly (Atenciosamente),
Rogério