- 2 minutes to read

Formula - removebom

The removebom formula in Nodinite lets you easily remove the Byte Order Mark (BOM) character from message body or context values. This page provides a clear, step-by-step guide with practical examples, so you can quickly master BOM removal for your integration needs.

✅ Remove invisible BOM characters from any text content
✅ Use with message body, context, or nested formulas
✅ Enhance data quality and search field results in Nodinite


What is the removebom formula?

The removebom function strips the BOM character from the beginning of a string. You can use it on message body, context, or the result of another formula.


How does it work?

Each example below is structured in three clear steps:

  1. Input – The data or context you start with
  2. Formula – The removebom expression you use
  3. Result – The output you get

Examples

Example 1: Remove BOM from message body

Input:

0xEF0xBB0xBFnodinite

Formula:

removebom(body)

Result:

nodinite

Removes the BOM character from the start of the message body


Example 2: Remove BOM from context value

Input:

0xEF0xBB0xBFdata

Formula:

removebom(context('MessageContextKey'))

Result:

data

Removes the BOM character from a context value


Example 3: Remove BOM from nested formula result

Input:

0xEF0xBB0xBFvalue

Formula:

removebom(SomeOtherNestedFormulaFunction(Content))

Result:

value

Removes the BOM character from the result of another formula


Usage Tips

  • Use with any Content that returns text
  • Works with jsonpath, xpath, or other formula functions
  • Only use on small messages—this function loads the entire message into RAM

Next Step

Add or manage Search Fields
Add or manage Log Views