Some of our clients report that, there are receive our XML file with
a special character at the beginning of each file.
Then I try to open the file in Visual Studio, XML Spy, notepad, it
looks fine, no spcecial character over there.
But if I open it in Ultra Edit or Compared It, I can see there is
really a special character over there, view it as binary mode; you can see that
the special character is EF BB BF
Then I go to check other XML file send out by BizTalk, all within
this special character, I’m very surprised in it. Although it will not cause
any errors, but some client’s application cannot recognize this special
character and cause some errors.
After an hour investigation, I found that there is a property configuration
–PreserveBOM in the XML send pipeline, it is “true” by default, if we configure
it to “false”, the special character “EF BB BF” will not present anymore.
没有评论:
发表评论