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 <[EMAIL PROTECTED]>:
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..
 
 
Regards,
 
Mert

 
On 5/31/06, Rogerio Pereira <[EMAIL PROTECTED] > wrote:
use UTF-8 as encoding

2006/5/31, Vladimir Coutinho <[EMAIL PROTECTED]>:
I'm having problems whit jsf. My language is portuguese. When use some outputText like "Exclusão" the jsf sends to browser
"Exclus&#227;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&#227;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


Reply via email to