--- title: "EncodingByBomOrXmlPreParser" slug: "encoding-by-bom-or-xml-pre-parser" updated: 2026-08-24T07:38:50Z published: 2026-08-24T07:38:50Z canonical: "docs.lobstersoftware.com/encoding-by-bom-or-xml-pre-parser" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # EncodingByBomOrXmlPreParser | **Class name** | com.ebd.hub.datawizard.parser.stream.EncodingByBomOrXmlPreParser | | --- | --- | ## Description The Preparser detects and removes byte order mark (BOM) bytes present at the beginning of the input file and can also detect the encoding of an XML file from the XML header if the BOM is missing. If the file encoding is detected, the file is recoded into the encoding specified in the Profile (in "Main settings/General") if necessary (if the encoding is different). The encoding detected in the file is noted in the job log if Phase 1 is enabled in the profile logging. Configuration: Properties file. ### Supported encoding BOM: UTF-8, UTF-16LE, UTF-16BE, UTF-32LE und UTF-32BE. XML: Virtually all encoding names possible in the XML header if supported in Java. ### Recommendation The profile encoding should be one that can represent all possible encoding in the input data, e.g. *UTF-8*. If the input file arrives in this encoding and has no BOM or XML header, it will be parsed correctly with this profile encoding (SOAP data usually has UTF-8 encoding, no XML header and no BOM). However, the profile is then also able to convert input data that comes in a different encoding, which is correctly declared by BOM or XML header, into the desired profile encoding (here *UTF-8*). ## Parameters | Parameter | Description | | --- | --- | | check.BOM | (optional) If *true*, the BOM is observed and the file is recoded accordingly. Default: *true*. | | check.XML | (optional) If *true*, the XML encoding is observed and the file is recoded accordingly. Default:*true* . | **NOTE:** The detection of a BOM takes precedence over the encoding specification in the XML. If both parameters are set to *false*, the input file is never modified. Optional intermediate phase before Phase 2. A preparser manipulates input data before the parser processes it; for example, to remove special characters or convert an unknown format to a supported one. XML (Extensible Markup Language) is a structured text format for storing and exchanging data. Content is enclosed within freely definable tags such as `<order>`. XML is human-readable, machine-processable, and platform-independent. In the Lobster Data Platform, you can receive, parse, and generate XML data. A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required. Input: An input agent receives the data. It can work either as event based (e.g. FTP upload) or scheduled (cron).