Purpose |
Set the default codepage used for ANSI / UNICODE conversions. |
Syntax |
CODEPAGE numexpr [TO prevpage&] |
Remarks |
At times, it is necessary to convert
If the optional TO clause is used, the number of the previous default codepage is assigned to the long integer variable specified by prevpage&. By saving the previous codepage, you can later restore it, if that's appropriate. This statement does not change the codepage in use by your computer. It tells what codepage should be used by default for ANSI/UNICODE conversions. Unicode strings require two bytes to represent a Unicode character, whereas ANSI strings (the native PowerBASIC string format) use one byte (or sometimes more) to represent a character. |
See also |