0
votes

When I attempted to run an application in the development environment to pass Arabic values in the request URL, it worked correctly.

I was able to get the correct text in the JSP file.

But when I deployed the same content in the Apache web server, Arabic values are displayed as:

?????????

How can I resolve this?

I have already set the URIEncoding to UTF-8 in server.xml and enabled the character encoding filters in conf/WEB.xml.

2
Is it about Apache HTTP Server OR Apache Tomcat? - home
Even when i try bypassing apache HTTP and directly access the application via port 8080 same ???? is displayed - Muthu
Please show the relevant code (JSP and Filter snippets)... - home

2 Answers

1
votes

Change the URIEncoding of the Connector.

0
votes

Try to add -Dfile.encoding="utf-8" in your catalina.bat

_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" `-Dfile.encoding="utf-8`" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%