Encoding conversions

Rational® Synergy supports different encodings for the same source files, which allows source files to have encodings that correspond to where they are stored.

Three different encodings can be specified for each object: one encoding for the server, one encoding for the Windows work area, and another encoding for a UNIX work area. The three encodings ensure that the appropriate encoding conversions are made when a file is copied from one location to another. To use different encodings, two attributes must be set.

The attributeencoding_conversions is set on the model object. When this attribute is set to TRUE, the multiple-encoding feature is enabled for the database. If this attribute does not exist or is set to FALSE, the feature is not enabled for the database.

The attribute encoding_conversions is set on the object type. This attribute specifies that encoding translations occur when the files are copied between the client and server, and vice versa. The encoding_conversions attribute has the following form:
Server-encoding:encoding
Unix-wa-encoding:encoding
Windows-wa-encoding:encoding

Specifying the UNIX or Windows work area encoding is optional. The encoding must be the name of a character encoding that is recognized by standard encoding conversion programs, such as iconv. More information about encodings is available in the technical note Encoding Translations on the Rational Synergy Support website.


Feedback