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 during reading from a stream or file.
Encoding is a read-only property that contains the value of the character encoding detected when the LoadFromStream or LoadFromFile methods are called. If a file or stream does not contain a BOM (the encoding value cannot be detected) then Encoding is set to the value specified in the DefaultEncoding property.
Encoding is used in the SaveToStream and SaveToFile methods.
See Also
- System.SysUtils.TEncoding
- System.Classes.TStrings.LoadFromStream
- System.Classes.TStrings.LoadFromFile
- System.Classes.TStrings.SaveToStream
- System.Classes.TStrings.SaveToFile
- System.Classes.TStrings.DefaultEncoding
- Using TEncoding for Unicode Files