System.SysUtils.TEncoding.ASCII

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class property ASCII: TEncoding read GetASCII;

C++

/* static */ __property TEncoding* ASCII = {read=GetASCII};

Properties

Type Visibility Source Unit Parent
property public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TEncoding

Description

Returns an encoding for the ASCII character set.

System.SysUtils.TEncoding.ASCII returns an encoding for the ASCII character set.

The Return Value is an instance of type TMBCSEncoding.

Caution: System.SysUtils.TEncoding.ASCII is 7-bit ASCII and therefore is not compatible with UnicodeString, the default string type in RAD Studio. With a 7-bit character set, conversion from char to widechar (that is, Unicode) fails on any high-ASCII character.

See Also

Code Examples