Show: Delphi C++
Display Preferences

System.UTF8Encode

From XE2 API Documentation
Jump to: navigation, search

Delphi

function Utf8Encode(const WS: WideString): RawByteString;
function Utf8Encode(const US: UnicodeString): RawByteString;
function UTF8Encode(const A: RawByteString): RawByteString;

C++

extern 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

Personal tools
Previous Versions
Translations