Policy Server Guides › Policy Design Guide › Customizing Registration Services › Localize Registration Services › Configure Registration Services for Different Languages › Change the Character Encoding in The JSPs
Change the Character Encoding in The JSPs
By default, the JSPs are encoded in ISO-8859-1 encoding. You can modify the encoding for these pages by changing the following files:
- inc_header.jsp
-
This file is included by the JSPs that include character encoding.
- dmserrorpage.jsp
-
This file is used to display error messages.
To change the character encoding
- Navigate to the pages directory where Registration Services is installed—for example:
- For Windows:C:\Program Files\Netegrity\SiteMinder Web Agent\Samples\dmspages
- For UNIX:/export/smuser/netegrity/<webagent_installation>/samples/dmspages
- Open inc_header.jsp in a text editor.
- Change the encoding for JSPs in the following statement:
<%! String charset = "ISO-8859-1"; %>
For example, to specify UTF-8 encoding, modify the statement, as follows:
<%! String charset = "UTF-8"; %>
- Change the encoding for HTML pages in the following statement:
<%@ page contentType="text/html;charset=ISO-8859-1" %>
For example, to specify UTF-8 encoding, modify the statement, as follows:
<%@ page contentType="text/html;charset=UTF-8" %>
- Save inc_header.jsp.
- Open dmserrorpage.jsp.
- Repeat steps 3-4.
- Save dmserrorpage.jsp.