IBM Support

How can I use encoded characters such as ®   ?

Technote (FAQ)


Question

How can I use encoded characters such as ®   ?

Answer

In Init.jsp under
wp_profile\installedApps\cellName\wps.ear\wps.war\themes\xdime\common,
add the required changes.

Example:

<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "&#160;" >
<!ENTITY tradeMark "&#8482;" >
<!-- more entities can be declared from the HTML entity reference -->
]>

Then you can reference them in the JSP this way: &nbsp;, &tradeMark;

For changes to remain permanent redeploy wps.ear.

Be sure to clear the contents of the following directories under <wp_profile_root> before starting the server:
- temp
- wstemp
- tranlog

Document information

More support for: IBM Mobile Portal Accelerator

Software version: 7.0, 7.0.1, 7.0.2, 8.0

Operating system(s): AIX, Linux, Solaris, Windows

Software edition: Enterprise

Reference #: 1461574

Modified date: 2013-01-02