System.WideStrUtils.Utf8ToAnsiEx

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function Utf8ToAnsiEx(const S: UTF8String; const cp : integer): AnsiString;

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall Utf8ToAnsiEx(const System::UTF8String S, const int cp);

Properties

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

Description

Converts a string encoded in UTF-8 to ANSI with a given code page.

Utf8ToAnsiEx converts the string specified by S to ANSI. The code page of the output string is specified by the cp parameter.

If the specified code page is CP_UTF8 then a direct assignment is made; otherwise a conversion is performed.

See Also