Platform SDK: CDO 1.2.1

CodePage Property (ObjectRenderer Object)

The CodePage property returns or sets the code page used by the ObjectRenderer object. Read/write.

Syntax

objObjectRend.CodePage

Data Type

Variant (Long, Object, or String)

Remarks

If the CodePage property is a long integer, it represents the code page to be used for character representation. If CodePage is an object, it contains an IDispatch pointer to an IRequest object. The CDO Rendering Library obtains from this object an HTTP Accept-Language header and sets the code page to the value that most closely matches the header. If CodePage is a string, it is treated as an International Standards Organization (ISO) language name, and the code page is set from the Microsoft® Windows NT® registry entry for that language.

Examples of values for the CodePage property are "USA" and 1252.

If a long integer value for CodePage is invalid, the code page remains unchanged. If a string value is not a recognizable language name, the appropriate default code page for the locale is used. If the requested code page has not been installed in the Windows NT server, an error is returned.

The setting of the CodePage property affects character selection and any dependent data considerations. The collating sequence, the sort order, and the formats for time, date, and currency representation are controlled by the LCID property, which is automatically set to correspond to the code page information whenever you set CodePage.

The settings of CodePage and LCID do not affect the locale settings of any Session object. Each session has its own SetLocaleIDs method.