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

GetConsoleTextEncoding

Gets the encoding used for a console application on the platform.

Declaration

Source position: lconvencoding.pas line 122

function GetConsoleTextEncoding: string;

Function result

Name of the encoding used for text in a console application.

Description

GetConsoleTextEncoding is String function which gets the encoding name used for console applications.

The return value may differ from the normal system encoding on some Windows versions, where the OEM code page is used for a console application. For more details, see: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/20552.

For all other platforms, the value from GetDefaultTextEncoding is used in the return value. The return value is normalized (hyphen characters removed and converted to lowercase).

See also

GetDefaultTextEncoding

  

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

NormalizeEncoding

  

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


Version 3.2 Generated 2024-02-25 Home