System.Classes.TStrings.Encoding
Delphi
property Encoding: TEncoding read FEncoding;
C++
__property System::Sysutils::TEncoding* Encoding = {read=FEncoding};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Classes.pas System.Classes.hpp |
System.Classes | TStrings |
Description
Character encoding determined from reading the stream or file.
Encoding is a read-only property that contains the value of the encoding detected when the LoadFromStream or LoadFromFilemethods are called. If the file does not contain a BOM, the value of the encoding cannot be detected and Encoding is set to the default standard encoding, specified in the DefaultEncoding property.
Encoding is used in the SaveToStream and SaveToFile methods.
See Also
- System.SysUtils.TEncoding
- LoadFromStream
- LoadFromFile
- SaveToStream
- SaveToFile
- DefaultEncoding
- Using TEncoding for Unicode Files