Unicode Support on the WebFOCUS Reporting Server

How to:

The WebFOCUS Reporting Server supports a Unicode Transformation Format (UTF) called UTF-8 in ASCII environments, and UTF-EBCDIC in EBCDIC environments:

In non-Unicode, single-byte encoding standards, such as ASCII, each character is assigned a code that is one byte long, limiting the number of characters that can be represented by the standard. When using those standards, it became common to equate a character with a byte of storage. If you had a string of 10 characters, the amount of storage needed was 10 bytes, and many character manipulation routines expected character string lengths to be specified as a number of bytes.

With Unicode encoding, bytes and characters are no longer equated. Characters are represented internally by a varying number of bytes, depending on the character. If you configure the server for Unicode, you define the length of strings and alphanumeric fields in terms of characters, not bytes. This simplifies specifying string and field lengths. Each character is represented internally by up to three bytes, and the server automatically adjusts for the actual storage length. In reports, each character displays in a report column using one space, regardless of how many bytes it takes up in memory. This character-based processing mode employed for Unicode environments is called character semantics. The non-Unicode mode is called byte semantics.

Procedures will continue to work when deployed in a Unicode environment, without adjustment, in most cases.

The main benefit of the new system is the ability to have multiple languages (both European and Asian) in the following WebFOCUS and Dialogue Manager objects:

Procedure: How to Configure the Server for Unicode

To configure the server for UTF-8 or UTF-EBCDIC character encoding:

  1. In the WebFOCUS Reporting Server Console, select Workspace from the menu bar.

    The Data Services Agents page opens.

  2. On the Workspace tab, in the Settings group, click LOCALE and then click Configuration Wizard.

    The NLS Configuration Wizard pane opens, as shown in the following image.

    NLS Configuration Wizard pane
  3. Select 65001 - Unicode (UTF-8) or 65002 - Unicode (UTF-EBCDIC) from the CODE_PAGE drop-down list.
  4. Click Save and Restart.

    The server will be configured for Unicode.

WebFOCUS

Feedback