GetCodepageByName

Find code page by name

Declaration

Source position: unixcp.pp line 637

  function GetCodepageByName(cpname: RawByteString) : TSystemCodePage;

Description

GetCodepageByName returns the code page number matching cpname. The supported code page names are the ones commonly in use in libiconv. Names are searched case-sensitively, with the exception that 'cpN' is converted to 'CPN', where N is a digit.

Errors

If no matching code page name is found, CP_NONE is returned.

See also

Name Description
GetCodepageData Return index of codepage.
GetSystemCodepage Return the system code page based on the program environment.
UnixCpMap Map with codepage names.