Bom$

Takes one parameter

Description:

Inspects the first few bytes of the source to look for a Byte Order Mask (BOM), and if found returns one of the following values. If none of these values are found, this function returns blank (false) and typically indicates that the source is ANSI or the encoding is defined as part of the source's meta data instead of using a BOM.

Note that Moxie.Build's file loading commands such as LoadCSVFile, LoadTabFile, etc. only support the loading of ANSI (no BOM), UTF-8LE, and UTF-16LE.

Return Values:

UTF-8: EF BB BF
UTF-16BE: (Big Endian) FE FF
UTF-16LE: (Little Endian) FF FE
UTF-32BE: (Big Endian) 00 00 FE FF
UTF-32LE: (Little Endian) FF FE 00 00