BTS 2009: Remove Byte Order Mark from messages
Some of our recipients where complaining that they received a ‘?’ in front of the messages we send with BizTalk.
Now, when we view the messages we send to them from the tracked messages, nothing seems to be wrong at first.
As you can see in the below image, the sent message just starts with “<?xml version=”1.0″ encoding=”utf-8″?>” like it should be.
For UTF-8 the BOM is “
I’ll show you how easy it is to remove these extra characters. The solution for this problem is to just correctly configure your send port. I’m not sure of the older BizTalk versions, but in BizTalk 2009 there is a setting on the XML Assembler component called ‘PreserveBOM’. When you change this setting to False, the Byte Order Mark characters will be omitted in the sent message.