Sign in Join
FPDoc Onlineexperiment

Utf8ToAnsi function

In unit System

Convert a UTF-8 encoded Unicode string to an ansistring.

Declaration

pascal
function Utf8ToAnsi(const s: RawByteString): RawByteString

Description

Utf8ToAnsi converts an utf8-encode Unicode string to an ansistring. It converts the string to a widestring and then converts the widestring to an ansistring.

For this function to work, a widestring manager must be installed.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.