Monday, December 20, 2010

Arabic support for Tomcat Webserver


Open Tomcat_Home >>conf>>Server.xml file and edit conntector tag , add this attribute URIEncoding="windows-1256" for windows envirionment.
< port="8080" uriencoding="WINDOWS-1256">
After this follow the steps below.
1.In the database the column data type must be nvarchar for SQLServer and Oracle.
2.In Servlets the first line must start with request.setCharacteEncoding("windows-1256").
3.In JSP declerative tags add encoding="windows-1256".

Before doing all this you had to set the arabic option in "Regional and arabic option" in both regional options and advanced tab in control panel.

For any queries regarding the arabic set up in windows envirionment
chandrasekhar.archana@gmail.com

No comments:

Post a Comment