Added in 4.3

$codepage(N)

Returns the id for usable codepages/encodings.

Parameters

N - If N = 0, number of codepages otherwise the Nth codepage.

Properties

.desc - Returns the full codepage description.
.name - Returns the short codepage name.
.id - Returns the codepage id.

Example

//echo -ag Number of codepages is $codepage(0) - the first codepage is $codepage(1).desc