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
Flow: The content is processed to remove the BOM character from the beginning.
Syntax
Remove BOM from message body: (See Example 1)
removebom(body)
Remove BOM from message context: (See Example 2)
removebom(context('MessageContextKey'))
Remove BOM from nested formula: (See Example 3)
removebom(jsonpath('$.path', body))
Examples
Example 1: Remove BOM from the message body
Input
Message body is 0xEF0xBB0xBFnodinite
Formula Expression
removebom(body)
Result
nodinite
Example 2: Remove BOM from message context
Input
Message context contains a property data with value 0xEF0xBB0xBFdata
Formula Expression
removebom(context('data'))
Result
data
Example 3: Remove BOM from nested formula result
Input
Message body with extracted value is 0xEF0xBB0xBFvalue
Formula Expression
removebom(jsonpath('$.data', body))
Result
value
Features
Important
The
removebomFormula removes the Byte Order Mark (BOM) character from the beginning of text. This function loads the entire message into RAM—use on small messages only.
- Flexible Inputs: Remove BOM from message body, Context, or the result of another Formula
- Clean Text: Ensure proper processing downstream by stripping BOM markers
- Composable: Combine with other Formula functions for powerful transformations
- Self-Service: Let business users clean data without developer intervention
How to use
To use the removebom Formula in a Search Field Expression:
- Open your Nodinite Web Client
- Navigate to Administration → Search Fields
- Create or edit a Search Field
- Choose Formula as the expression type
- Enter your removebom expression using the Syntax patterns above
Next step
- Learn how to create a Search Field with an Expression