Topic Path: Symbol Reference > Functions > FindCharset Function
ContentsIndexHome
PreviousUpNext
FindCharset Function

Locates the enumeration value for a character set name.

File
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.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.