getEncoding

getEncoding(codePage) (1 of 3)

Returns the encoding associated with the specified code page identifier.

ParameterTypeDescription
codePageintThe code page identifier of the preferred encoding. -or- 0, to use the default encoding.

Returns: The Encoding object associated with the specified code page.


getEncoding(charsetName) (2 of 3)

Returns an encoding associated with the specified charset name.

ParameterTypeDescription
charsetNameStringspecified charset name

Returns: The Encoding object associated with the specified charset name.


getEncoding(charset) (3 of 3)

Returns an encoding associated with the specified charset object.

ParameterTypeDescription
charsetCharsetspecified charset object

Returns: The Encoding object associated with the specified charset object.