By default the server supports the full set of Unicode characters, encoded using UTF-8
throughout the software stack. There exist two potential "gotchas" for administrators deploying the Cosmo servlet in an environment other than the one provided in the Server Bundle:
- The Java Virtual Machine default character encoding MUST be UTF-8. To ensure this is the case include -Dfile.encoding=UTF-8 in the command line when starting the Virtual Machine.
- The default URI Encoding MUST be UTF-8. In the default bundle this is accomplished by including the attribute URIEncoding="UTF-8" in the <Connector> element in snarf/src/main/config/server.xml