[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Gets the name for the default text encoding used on the platform or operating system.
Source position: lconvencoding.pas line 118
function GetDefaultTextEncoding: string; |
The name for the default text encoding used on the platform.
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.
|
Encoding name for UTF-8. |
|
|
Converts the specified encoding name to lowercase and removes '-' characters. |
Version 3.2 | Generated 2024-02-25 | Home |