System.AnsiToUtf8

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AnsiToUtf8(const S: string): _RawByteStr;

C++

extern DELPHI_PACKAGE RawByteString __fastcall AnsiToUtf8(const UnicodeString S);

Properties

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

Description

Converts a string encoded in Ansi to UTF-8.

AnsiToUtf8 converts the string specified by S, which uses the ANSI encoding system, to UTF-8.

See Also


Code Examples