Top
Symfoware Server V12.0.0 Application Development Guide
FUJITSU Software

5.2.2 Message Language and Character Set Settings

This section explains the language settings for the application runtime environment and the character set settings for the application.

Language settings

You must match the language settings for the application runtime environment with the message locale settings of the database server.

Character set settings

It is recommended to match the character set setting of the application with the character set setting of the client. Messages may be garbled if the settings do not match.

Use one of the following procedures to set the character set for the application:

Also match the character code with the environment.


Setting in the "PGCLIENTENCODING" environment variable

Example

LinuxAn example of specifying when the character set of the client is UTF-8 (Bash)

> PGCLIENTENCODING=UTF8; export PGCLIENTENCODING

WindowsAn example of specifying when the character set of the client is UTF-8

> set PGCLIENTENCODING=UTF8

Specifying the client_encoding parameter with the SET statement

Example

An example of specifying when the character set of the client is UTF-8

> SET client_encoding TO 'UTF8';

Note

Text may be garbled when outputting results to the command prompt. Review the font settings for the command prompt if this occurs.

See

Refer to "Character Set Support" in "Server Administration" in the PostgreSQL Documentation for information on the character sets that can be used.