Internet Direct (Indy)
Home
PreviousUpNext
FindCharset Function

Locates the enumeration value for a character set name.

Pascal
function FindCharset(
    const s: string
): TIdCharset;
Parameters 
Description 
Character set name to be located. 

TIdCharset - Enumeration value for the character set name.

FindCharset is a TIdCharset function used to locate the enumeration value that represents the character set name specified in S. 

FindCharset iterates over each of the values in TIdCharset and compares the IdCharsetNames value for the enumeration to the character set name in S. When S cannot be located, the value idcsINVALID is returned. 

Use FindPreferredCharset to located the enumeration value for the preferred character set instead of a registered alias.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.