DecodeBOM (FUN)
FUNCTION DecodeBOM : UDINT
Attempts to recognize a BOM in the first bytes of byData and then returns the corresponding ENCODING
and its length in bytes.
- InOut:
- 
| Scope | Name | Type | Comment | 
|---|
 | Return | DecodeBOM
 | UDINT
 |  |  | Input | pbyData
 | POINTER TO BYTE | Pointer to the first byte of the BOM |  | udiSize
 | UDINT
 | Size of the BOM in bytes |  | Output | eEncoding
 | ENCODING | Encoding type of the BOM |  | eErrorID
 | ERROR | Check error output value for better diagnostics |