System.UTF8ToString
Delphi
function UTF8ToString(const S: _RawByteStr): string;
function UTF8ToString(const S: _ShortStr): string;
function UTF8ToString(const S: _PAnsiChr): string;
function UTF8ToString(const S: array of _AnsiChr): string;
function UTF8ToString(const S: array of Byte): string; overload;
C++
extern DELPHI_PACKAGE UnicodeString __fastcall UTF8ToString(const RawByteString S)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.pas System.hpp |
System | System |
説明
UTF-8 エンコード文字列を文字列に変換します。
UTF8ToString を呼び出すと、UTF-8 エンコードの文字列を文字列に変換できます。 S
は、UTF-8 エンコード文字の文字列または配列で、次の形式をとることができます:
- RawByteString
- ShortString
- PAnsiChar
- AnsiChar の配列
- Byte の配列
この関数の結果は、対応するデコードされた文字列値となります。