![]() |
| |||||||||
| Resin 3.1 Documentation Tutorials Changes Overview Installation Configuration Quercus SOA/IoC JSP Servlets and Filters Admin (JMX) EJB Amber Security Performance Hessian XML and XSLT Third-party Troubleshooting/FAQ Overview Module Status Resin Module Java Interface Troubleshooting FAQ |
How to get apps to run in Quercus How come I get a utf-8 encoding exception?Quercus runs scripts in utf-8 by default. Some PHP scripts are in another encoding and you will need to tell Quercus what encoding to use (usually ISO-8859-1) in the webapp's web.xml file. Your web.xml should look something like this:
<web-app xmlns="http://caucho.com/ns/resin"
xmlns:resin="http://caucho.com/ns/resin">
<servlet-mapping url-pattern="*.php"
servlet-class="com.caucho.quercus.servlet.QuercusServlet">
<init>
<script-encoding>iso-8859-1</script-encoding>
</init>
</servlet-mapping>
</web-app>
The web.xml file belongs in the webapp's WEB-INF directory.
| |||||||||