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>
DEFAULTENCODING
<param-name></param-name>
Encoding
<param-value></param-value>
</init-param>
Default if omitted: UTF-8
Values
Encoding code |
Description |
---|---|
|
Unicode (default) |
|
Western Europe |
|
Czech; Eastern Europe |
|
Russian; Cyrillic |
|
Arabic |
|
Greek |
|
Hebrew |
|
Hebrew |
|
Euro sign |
|
Czech; Eastern Europe |
|
Russian; Cyrillic |
|
English and Western Europe (default) |
|
Greek |
|
Hebrew |
|
Arabic |
|
Western Europe |
|
Czech; Eastern Europe |
|
Russian; Cyrillic |
|
Arabic |
|
Greek |
|
Hebrew |
|
Euro sign |
|
Japanese; Kanji; Hankaku |
|
Japanese; Kanji; Hankaku |
|
Japanese; Kanji; Hankaku |
|
Chinese Simplified |
|
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.