$codepage » History » Version 1
Per Amundsen, 09/06/2022 06:52 PM
| 1 | 1 | Per Amundsen | _Added in 4.3_ |
|---|---|---|---|
| 2 | |||
| 3 | *$codepage(N)* |
||
| 4 | |||
| 5 | Returns the id for usable codepages/encodings. |
||
| 6 | |||
| 7 | *Parameters* |
||
| 8 | |||
| 9 | N - If N = 0, number of codepages otherwise the Nth codepage. |
||
| 10 | |||
| 11 | *Properties* |
||
| 12 | |||
| 13 | .desc - Returns the full codepage description. |
||
| 14 | .name - Returns the short codepage name. |
||
| 15 | .id - Returns the codepage id. |
||
| 16 | |||
| 17 | *Example* |
||
| 18 | |||
| 19 | <pre> |
||
| 20 | //echo -ag Number of codepages is $codepage(0) - the first codepage is $codepage(1).desc |
||
| 21 | </pre> |