From Xojo Documentation
Used to get the text encoding to be used as the output encoding when you are going to display the text in that font. Most fonts will have the same encoding but fonts like Symbol have a different encoding.
|result||TextEncoding||Text encoding of FontName.|
|FontName||String||The Name of a font.
It returns the system default encoding if you pass one of the names (e.g., "System", "SmallSystem", "System.UTF8", etc.).
The font names "System" and "SmallSystem" can be used in place of the names of real fonts when you specify the value of the TextFont property for visible controls. When you use these names, the default system or small system font for the operating system on which the application is running is used. Using System and SmallSystem avoids the need to specify different fonts for different operating systems. Use this feature in conjunction with setting font size equal to zero to tells your app to choose the font size for each platform. On Windows and Linux, "System" and "SmallSystem" are the same.
The following code returns the text encoding for the Symbol font.