System.Utf8ToAnsi

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Utf8ToAnsi(const S: _RawByteStr): string;

C++

extern DELPHI_PACKAGE UnicodeString __fastcall Utf8ToAnsi(const RawByteString S);

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

Converts a UTF8 string to a string of Ansi characters.

Call Utf8ToAnsi to convert a UTF-8 string to Ansi. S is a string encoded in UTF-8. Utf8ToAnsi returns the corresponding string that uses the Ansi character set.

See Also