getLCIDFromCharacterSet
getLCIDFromCharacterSet(charset: String): Integer;
The getLCIDFromCharacterSet method of the Node class returns an integer for the locale ID (LCID) that corresponds to the character set specified by the value of the charset parameter. If the value of the charset parameter is not a valid value or if the locale is not installed, the method returns zero (0).
Web pages and HTTP headers should contain the name of the character set of the encoding being used. The Euro symbol (€) is encoded as 0x80 and 0xA4, depending on the character set being used. As the Jade Unicode to ANSI conversion routines use the locale ID instead of the character set, the getLCIDFromCharacterSet method enables you to determine the locale ID to use in those routines and to determine whether the locale is installed.
The following example obtains the locale for the fr-FR character set.
lcid := node.getLCIDFromCharacterSet("fr-FR"); // locale ID is 1036