Sun Java System Web Server 7.0 Update 2 Developer's Guide to Java Web Applications

locale-charset-map Element

This element maps a locale to a specific character encoding.

For encodings you can use, see:

http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html

Attributes

The following table describes attributes for the locale-charset-map element.

Table A–49 locale-charset-map Attributes

Attribute  

Default Value  

Description  

locale

none 

Specifies the locale name. 

agent

none 

Ignored in Web Server 

charset

none 

Specifies the character set for that locale. 

The following table provides a locale-charset-map example, listing the locale and the corresponding charset:

Table A–50 locale-charset-map Example

Locale  

Charset  

ja  

EUC-JP  

zh 

UTF-8