[ Team LiB ] Previous Section Next Section

Setting the Page Encoding

One of the first problems you may encounter in developing an international Web site is that you may need to use a character encoding that is different from the default used by the servlet container. The default character encoding is ISO-8859-1, which is typically used for English and Latin-based languages. If your Web site must support languages that typically require a different encoding (such as Korean, Japanese, Chinese, and so on), you can specify the page encoding with the pageEncoding option in the page directive. For example, to set the page encoding to euc-kr for a Korean-language Web site, use the directive


<%@page pageEncoding="euc-kr"%>
    [ Team LiB ] Previous Section Next Section