System.Classes.TStrings.SetEncoding
Delphi
procedure SetEncoding(const Value: TEncoding); virtual;
C++
virtual void __fastcall SetEncoding(System::Sysutils::TEncoding* const Value);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
protected | System.Classes.pas System.Classes.hpp |
System.Classes | TStrings |
Description
Protected setter of the Encoding property.
If Value is one of standard encoding values, SetEncoding sets the Encoding property to Value. Otherwise, SetEncoding sets the Encoding property to default.
Internally, Assign and LoadFromStream call SetEncoding.