IsASCIIText

Submitted by:J Kamy81

Date added:13 November, 2018

Category:Delphi

Checks if the given string contains only valid ASCII characters. Returns True if so or False otherwise.

Tags: ascii character

Code Snippet:

function IsASCIIText(const Text: UnicodeString): Boolean;
begin
Result := EncodingSupportsString(Text, SysUtils.TEncoding.ASCII);
end;
 
 

Comments