GetDefaultTextEncoding function
Gets the name for the default text encoding used on the platform or operating system.
Declaration
function GetDefaultTextEncoding: stringFunction result
The name for the default text encoding used on the platform.
Description
GetDefaultTextEncoding gets the default encoding name used for text from the DefaultTextEncoding variable (in the unit implementation), when assigned. Otherwise, platform-specific routines are used to get return value like: GetWindowsEncoding, GetUnixEncoding. The value in the EncodingUTF8 constant is used for the Darwin platforms. The return value contains the encoding used for AnsiString in the FPC RTL, and is retained in the DefaultTextEncoding variable for subsequent calls to the routine.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
