DEFAULTENCODING

Specifies the encoding used by the Web Application Server to convert inbound and outbound TEXT, HTML, and XML, if no encoding is specified in the request. This setting influences the conversion to the web browser.

<init-param>
<param-name>
DEFAULTENCODING </param-name>
<param-value>
Encoding</param-value>
</init-param>

Default if omitted: UTF-8

Values

Encoding for converting inbound and outbound HTML

Encoding code

Description

UTF-8

Unicode (default)

ISO-8859-1

Western Europe

ISO-8859-2

Czech; Eastern Europe

ISO-8859-5

Russian; Cyrillic

ISO-8859-6

Arabic

ISO-8859-7

Greek

ISO-8859-8

Hebrew

ISO-8859-8-I

Hebrew

ISO-8859-15

Euro sign

windows-1250

Czech; Eastern Europe

windows-1251

Russian; Cyrillic

windows-1252

English and Western Europe (default)

windows-1253

Greek

windows-1255

Hebrew

windows-1256

Arabic

LATIN1

Western Europe

LATIN2

Czech; Eastern Europe

LATIN5

Russian; Cyrillic

LATIN6

Arabic

LATIN7

Greek

LATIN8

Hebrew

LATIN9

Euro sign

Shift_JIS

Japanese; Kanji; Hankaku

EUC-JP

Japanese; Kanji; Hankaku

ISO-2022-JP

Japanese; Kanji; Hankaku

GB_2312-80

Chinese Simplified

KSC_5601

Korean; Hangul; Hanja

Example: DEFAULTENCODING

The operating system is Microsoft Windows, the web browser is Internet Explorer, and the web server is Tomcat. A Uniface application uses Cyrillic character sets.

In the directory UnifaceInstallationDirectory\uniface\webapps\uniface\WEB-INF, modify the file web.xml by inserting the following lines into the WRD servlet’s specification:

    <init-param>
          <param-name>DEFAULTENCODING</param-name>
          <param-value>windows-1251</param-value>
    </init-param>

The results are:

  • The web browser’s encoding is automatically set to Cyrillic (Windows).
  • Uniface communicates with the web browser using characters in the Cyrillic character set.

Related Topics