System.WideStrUtils.Utf8ToAnsiEx

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

Delphi

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

C++

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

プロパティ

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

説明

UTF-8 でエンコードされた文字列を指定コード ページで ANSI に変換します。

Utf8ToAnsiEx は、S で指定された文字列を ANSI に変換します。出力文字列のコード ページは、cp パラメータで指定します。

指定コード ページが CP_UTF8 である場合は、そのまま代入され、異なる場合は、変換されます。

関連項目