[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'LConvEncoding' (#lazutils)

GetDefaultTextEncoding

Gets the name for the default text encoding used on the platform or operating system.

Declaration

Source position: lconvencoding.pas line 118

function GetDefaultTextEncoding: string;

Function 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

EncodingUTF8

  

Encoding name for UTF-8.

NormalizeEncoding

  

Converts the specified encoding name to lowercase and removes '-' characters.


Version 3.2 Generated 2024-02-25 Home