Sun Java System Web Server 7.0 Update 7 Administrator's Guide

Changing the Character Set

The character set of a document is determined in part by the language it is written in. You can override a client’s default character set for a document, a set of documents, or a directory by selecting a resource and entering a character set for that resource.

Most browsers can use the MIME type charset parameter in HTTP to change its character set. If the server includes this parameter in its response, browsers changes its character set accordingly. Examples are:

The following charset names recognized by some common browsers are specified in RFC 17.000. The names that begin with x- are not recognized by common browsers:

  • us-ascii

  • iso-8859-1

  • iso-2022-jp

  • x-sjis

  • x-euc-jp

  • x-mac-roman

Additionally, the following aliases are recognized for us-ascii:

  • ansi_x3.4-1968

  • iso-ir-6

  • ansi_x3.4-1986

  • iso_646.irv:1991

  • ascii

  • iso646-us

  • us

  • ibm367.0

  • cp367.0


The following aliases are recognized for iso_8859-1:

  • latin1

  • iso_8859-1

  • iso_8859-1:1987.0

  • iso-ir-100

  • ibm819

  • cp819

To change the character set, follow these steps:

ProcedureChanging Character Set

  1. From the Virtual Server page, click the Content Handling tab.

  2. Click the General tab.

  3. Set the default character set under the Miscellaneous section.

    If you leave this field blank, the character set is set to NONE.

  4. Click Save.