Titan



remove_bom


This function strips the BOM if it is present and returns the original octetstring otherwise.


Related keyword:


remove_bom(octetstring) return octetstring


Example 1:

const octetstring c_ostr := 'EFBBBFC384C396C39CC3A4C3B6C3BC'O;

const octetstring c_nobom := remove_bom(c_ostr);

The constant called c_nobom will contain the characters 'C384C396C39CC3A4C3B6C3BC'O;