- 3 minutes to read

Formula - removebom

Easily remove BOM (Byte Order Mark) characters from messages using the Nodinite removebom Formula plugin. This page shows how to strip BOM markers from message Content, or the output of other formulas.

🎯 Designed for business users and integrators β€” no developer required; you can even use AI to craft expressions.

  • βœ… Remove BOM characters from any Payload or Context in any Log Event
  • βœ… Clean text data to ensure proper processing downstream
  • βœ… Transform and surface meaningful data in Nodinite Log Views, search filters, and self-service diagnostics
  • βœ… Combine with other Formula functions for powerful, layered expressions

What does the removebom Formula do?

The removebom(Content) Formula function removes the Byte Order Mark (BOM) character from the beginning of text. Use it on message bodies, context values, or the results from other Formula functions to clean data for your views.


How it works: Input ➜ removebom ➜ Result

graph LR A["Input: Text with BOM"] --> B["removebom(Content)"] B --> C["Result: Clean text without BOM"]

Flow: The content is processed to remove the BOM character from the beginning.


Example 1 β€” Remove BOM from the message body

Input from body

0xEF0xBB0xBFnodinite

Formula Expression

removebom(body)

Result

nodinite

Example: Removing BOM character from message body.


Example 2 β€” Remove BOM from message context

Suppose you have a message context value with the key data containing a BOM character.

Input

0xEF0xBB0xBFdata

Formula Expression

removebom(context('data'))

Result

data

Example: Removing BOM character from message context.


Example 3 β€” Remove BOM from nested formula result

Suppose you extract data using another formula and need to remove the BOM.

Input

0xEF0xBB0xBFvalue

Formula Expression

removebom(SomeOtherNestedFormulaFunction(Content))

Result

value

Example: Removing BOM character from the result of another formula.


Features

  • Remove BOM characters from any Content to ensure clean text processing
  • Works with message body, context, or results from other Formula functions
  • Combine with other Formula functions for powerful, layered expressions
  • Use in Log Views for filtering, grouping, and self-service diagnostics

Important

The removebom plugin loads the entire message into RAM. Only use this function on small messages to avoid performance issues.


How to use the removebom Formula

  1. Select Formula as the expression type plugin.
  2. Enter your removebom expression in the 'Expression' text area.
  3. Provide a string as the Content parameter (for example, the message body, a context value, or another formula result).

Syntax

  • Remove BOM from message body:
    removebom(body)
  • Remove BOM from message context:
    removebom(context('MessageContextKey'))
  • Remove BOM from another formula:
    removebom(SomeOtherNestedFormulaFunction(Content))

Next Step

How to Add or manage Search Fields
How to Add or manage Log Views