This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I hope all of you get this mail in good health and mode. Please i need your help at some problem.
I'm developing a web site using apahce server as a web server and the site will be in a language other than English.
I'm using a db2 database.
The problem happend as it's: 1) I get the parameters from the servlet 2) I access a java bean class at the servlet which i made the connection to database in it. 3) the values didn't enter the database correctly in Arabic format.
NB.: if i write constant values of arabic in the bean class, it enters the database correctly in Arabic format.
Also I'm using the encoding "windows-1256" and I trried also "UTF-8"
By the way this functionality can be implemented using Intercepting Filter design pattern (i.e. create your own implementation of javax.servlet.Filter, refer to the Servlet 2.4 spec's "Filtering" chapter if interested)