Microsoft Knowledge Base Email Alertz

How to delete a byte order mark from an outgoing message in BizTalk Server 2006 and in BizTalk Server 2004

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 921044 - Last Review: July 13, 2006 - Revision: 1.2

How to delete a byte order mark from an outgoing message in BizTalk Server 2006 and in BizTalk Server 2004

INTRODUCTION

In Microsoft BizTalk Server 2006 and in Microsoft BizTalk Server 2004, an outgoing message may contain a byte order mark. If the destination application cannot accept a message that contains a byte order mark, the message may not be processed as expected.

This article describes a byte order mark. Additionally, this article describes how to delete a byte order mark from an outgoing message.

MORE INFORMATION

A byte order mark is appended to a message when the assembler component or the disassembler component is used to process a message in BizTalk Server. If you use a PassThruReceive pipeline or a PassThruTransmit pipeline, a byte order mark is not appended to a message.

In UTF-16 encoding, a byte order mark is the FE FF byte sequence or the FF FE byte sequence at the start of the encoded string. The FE FF byte sequence indicates that the encoded characters that follow use the big-endian byte order. The FF FE byte sequence indicates that the encoded characters that follow use the little-endian byte order. In UTF-8 encoding, a byte order mark is the EF BB BF byte sequence at the start of the encoded string.

To delete a byte order mark from an outgoing message in BizTalk Server 2006, use a custom pipeline. In the assembler component in the custom pipeline, set the Preserve Byte Order Mark property to False.

To delete a byte order mark from an outgoing message in BizTalk Server 2004, use a custom pipeline. In the custom pipeline, create a custom component that deletes the byte order mark.

APPLIES TO
  • Microsoft BizTalk Server 2006 Standard Edition
  • Microsoft BizTalk Server 2006 Enterprise Edition
  • Microsoft BizTalk Server 2006 Developer Edition
  • Microsoft BizTalk Server 2004 Standard Edition
  • Microsoft BizTalk Server 2004 Partner Edition
  • Microsoft BizTalk Server 2004 Enterprise Edition
  • Microsoft BizTalk Server 2004 Developer Edition
Keywords: 
kbbtsmessaging kbbts kbhowto KB921044
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Martin Lercher - http://www.singhammer.de Report As Irrelevant  
Written: 8/3/2006 10:57 AM
setting the Preserve Byte Order Mark property to False has no effect in my BT2006 Environment. The UTF-8 BOM keeps showing up.

Martin Lercher Report As Irrelevant  
Written: 8/3/2006 11:11 AM
There was an XML Validator in the encode stage. When I moved it to the preassemble stage the BOM disappeared.