System.Classes.TStrings.Encoding

From RAD Studio API Documentation
Jump to: navigation, search

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

Code Examples