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

NormalizeEncoding

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

Declaration

Source position: lconvencoding.pas line 123

function NormalizeEncoding(

  const Encoding: string

):string;

Arguments

Encoding

  

Encoding name normalized in the routine.

Function result

Contains the encoding name converted to lowercase with hyphen ('-') characters removed.

Description

Converts a value like 'UTF-8' to 'utf8', or 'ISO-8859-1' to 'iso88591'.

NormalizeEncoding is used in the implementation of conversion routines, like:

See also

GetDefaultTextEncoding

  

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

GetConsoleTextEncoding

  

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

GuessEncoding

  

Tries to determine the encoding used for the specified value.

ConvertEncodingFromUTF8

  

Converts the encoded value from UTF-8 to the encoding with the specified name.

ConvertEncodingToUTF8

  

Converts the specified string value to the UTF-8 encoding.

ConvertEncoding

  

Converts the specified value from its source encoding to a target encoding using an optional code page.


Version 3.2 Generated 2024-02-25 Home