Sun ONE logo      Previous      Contents      Index      Next     

Sun ONE Web Server 6.1 Programmer's Guide to Web Applications

Appendix A
Internationalization Issues

This appendix covers internationalization as it applies to the following:


Servlets

This section describes how the Sun ONE Web Server determines the character encoding for the servlet request and the servlet response.

For encodings you can use, see:

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

Servlet Request

When processing the servlet request, the server uses the following order of precedence, first to last, to determine the character encoding for the request parameters:

Servlet Response

When processing a servlet response, the server uses the following order of precedence, first to last, to determine the response character encoding:

To specify the character encoding that should be set in the Content-type header of the response if the response locale is set using the ServletResponse.setLocale method, you can use the locale-charset-map under the locale-charset-info element in the sun-web.xml file. For more information about this element, see "locale-charset-info."


JSPs

A JSP page uses a character encoding. For encodings you can use, see:

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

The encoding can be described explicitly using the pageEncoding attribute of the page directive. The character encoding defaults to the encoding indicated in the contentType attribute of the page directive if it is given, or to ISO-8859-1.

For more information, see the “Localization Issues” chapter of the JSP 1.2 specification, which can be found at the following location:

http://java.sun.com/products/jsp/download.html

Also see the article Developing Multilingual Applications Using JavaServer Pages Technology at:

http://java.sun.com/developer/technicalArticles/Intl/MultilingualJSP/index.html



Previous      Contents      Index      Next     


Copyright 2004 Sun Microsystems, Inc. All rights reserved.