version 2003
PA_GetUserCharSet PA_CharSet
| Parameter | Type | Description | ||||
| This command does not require any parameters | ||||||
| Function result | PA_CharSet | Used charset | ||||
Description
The PA_GetUserCharSet command returns the charset used for the string and text parameters of 4D Plugin API commands. By default, this command will return eCS_Macintosh on Macintosh, and eCS_Ansi on Windows. The charset can be set using PA_UseMacCharacters and PA_UseAnsiCharacters.
Examples
Read the current charset, set it to Ansi and restore it if needed
` PA_CharSet charset; charset = PA_GetUserCharSet(); PA_UseAnsiCharacters(); /* do anything using Ansi strings */ if ( charset == eCS_Macintosh ) PA_UseMacCharacters();
See Also
PA_UseAnsiCharacters, PA_UseMacCharacters.