Troubleshooting FAQ
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
Java Interface
Quercus
SOA/IoC

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.xml
<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.


Java Interface
Quercus
SOA/IoC
Copyright © 1998-2006 Caucho Technology, Inc. All rights reserved.
Resin ® is a registered trademark, and Quercustm, Ambertm, and Hessiantm are trademarks of Caucho Technology.