Web.HTTPApp.EncodingGetString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function EncodingGetString(const AContentType: string; const AValue: TBytes): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall EncodingGetString(const System::UnicodeString AContentType, const System::DynamicArray<System::Byte> AValue);

Properties

Type Visibility Source Unit Parent
function public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp Web.HTTPApp

Description

Decodes an array of bytes into a string, in accordance with the content type encoding.

EncodingGetString extracts from AContentType the content type encoding (can be UTF-8 or ANSI) and decodes the array of bytes represented by AValue (see System.SysUtils.BytesOf) into the corresponding string.

The inverse function is EncodingGetBytes.

See Also