September
7th,
2005
In BizTalk Server 2004, when you add the Flat File Disassembler component to a receive pipeline, there is no apparent way to tell the disassembler what the encoding of the incoming files will be.
This is not very obvious but, as it turns out, there is a way to do this by changing the input document schema itself. The trick is setting the Codepage property of the
According to the BizTalk documentation, the following algorithm is used to determine encoding when reading the document:
- If the "Charset" in the body part is set, use it.
- Otherwise, if the envelope (or document) schema specifies a code page, use it.
- Otherwise, if a byte order mark is present, use it.
- Otherwise, assume UTF-8.