System.UTF8Encode

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

{$ENDIF LINUX}
function Utf8Encode(const WS: _WideStr): _RawByteStr;
end;
function Utf8Encode(const US: UnicodeString): _RawByteStr;
function UTF8Encode(const A: _RawByteStr): _RawByteStr;
procedure UTF8Encode(const US: UnicodeString; var B: array of Byte);

C++

extern DELPHI_PACKAGE RawByteString __fastcall UTF8Encode(const WideString WS)/* overload */;

プロパティ

種類 可視性 ソース ユニット
function public
System.pas
System.hpp
System System

説明

Unicode 文字列(WideString)を UTF-8 文字列に変換します。

UTF8Encode を呼び出すと,Unicode 文字列を UTF-8 文字列に変換できます。WS パラメータは,変換する Unicode 文字列です。Utf8Encode は,対応する UTF-8 文字列を返します。

関連項目