SetMultiByteConversionCodePage procedure
Set codepage for conversions from multi-byte strings to single-byte strings.
Declaration
procedure SetMultiByteConversionCodePage(CodePage: TSystemCodePage)Description
SetMultiByteConversionCodePage sets
DefaultSystemCodePage to
CodePage.
The effect of this change is that the default codepage used to translate multi-byte (UTF-16) strings to single-byte codepage-aware strings
changes, and code page conversions will be done to the new codepage.
Do not set DefaultSystemCodePage directly, as additional actions may need to be done when changing the code page.
When the DefaultSystemCodePage changes and you use the TEncoding classes,
you must call TEncoding.FreeEncodings to regenerate the default encoding using the new code page.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
