BizTalk Server 2006 uses following rules to find out the encoding of a message:
- If Byte Order Mark exists, then the encoding is determined
- If content property BodyPart.CharSet is set, then the encoding is determined
- If xml declaration exists, then the encoding is determined
- If none of above matches, UTF-8 is used
So to change message encoding, here are several ways:
- Add byte order mark
- Set BodyPart.CharSet content property
- Add Xml declaration
So it is NOT enough if you only change the actual data in the stream to specificed encoding, one of the above must be matched!
沒有留言:
張貼留言