File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Encoding problem with RichFaces Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Encoding problem with RichFaces" Watch "Encoding problem with RichFaces" New topic
Author

Encoding problem with RichFaces

Felix Sima
Ranch Hand

Joined: Feb 06, 2008
Posts: 40
Hello.

I am developing a web application using JBoss 5.0.0.GA + RichFaces 3.2.2.GA and I want to use romanian characters on my pages, for instance: ţ.
The problem is that on my page this character is displayed like this: ţ. More precisely, if I put this character directly on my page like


it is displayed correctly, but if I use

where

in CustomMessages_ro.properties file, then on the page it comes like Judeţ

I have tried to instruct RichFaces to use UTF-8 encoding, but seems like I am missing something.

My JSP:


I have specified the below filter on my web.xml to be used instead of the default one

web.xml

On the run.bat script that launches JBoss application server I added
-Dfile.encoding=UTF-8

I don't know if it is important, but my page (the welcome page of my application) is display after a redirect, like this:



Am I missing something? Or is there any error on my code above?
Any help would be highly appreciated.
Thanks.

Best regards,
Felix
Use www.jaaava.com - A Google for Java !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Encoding problem with RichFaces
 
Similar Threads
Spring MVC UTF-8 encoding problem
Richfaces Scrollable Datatable with filtermethod not working
Problem with UTF-8 Character encoding
how can i choose the right encoding to read arabic
Struts / glassfish: Encoding problem