GetTextEncoding Function

Returns a TextEncoding object based on user-specified parameters.

Syntax

result = GetTextEncoding( Base, [Variant], [Format] )


Parameters

Base

Integer

The type of encoding.

Variant (Optional)

Integer

Specific variation of Base.

Format (Optional)

Integer

Format--only used by Unicode for defining which format of Unicode you wish to use



Notes

See the TextConverter class for the Base and Variant codes. The codes for Format are as follows:

NameCode
Default Format 0
Unicode16BitFormat 0
UnicodeUTF7Format 1
UnicodeUTF8Format 2
Unicode32BitFormat 3


Example

See the example for GetTextConverter.


See Also

ConvertEncoding, DefineEncoding, Encoding, GetTextConverter, GetFontTextEncoding, GetInternetTextEncoding functions; Encodings object; TextEncoding, TextConverter classes.