System.UTF8Encode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Utf8Encode(const WS: _WideStr): _RawByteStr;
function Utf8Encode(const US: UnicodeString): _RawByteStr;
function UTF8Encode(const A: _RawByteStr): _RawByteStr;
procedure UTF8Encode(const US: UnicodeString; var B: array of Byte);

C++

extern DELPHI_PACKAGE RawByteString __fastcall UTF8Encode(const WideString WS)/* overload */;

Properties

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

Description

Converts a WideString value to a UTF8 string.

Call UTF8Encode to convert a Unicode string to UTF-8. WS is the Unicode string to convert. Utf8Encode returns the corresponding UTF-8 string.

See Also