UTF-8

Delphi UTF-8 library.
Converts strings and widestrings from/to UTF-8.
Available free with full source code.

Library API

// encode strings to UTF-8
function ToUtf8(const Data: AnsiString): Utf8String; overload;
function ToUtf8(const Data: WideString): Utf8String; overload;

// decode UTF-8 strings
function ToAnsiString(const Utf8: Utf8String): AnsiString;
function ToWideString(const Utf8: Utf8String): WideString;
								

Download

Related links