locked
Output XML Encoding issue (different File Encoding than XML encoding) RRS feed

  • Question

  • I am receiving XML in the encoding format of "iso-8859-1". The xml declaration inside XML also contains encoding "iso-8859-1". Now somehow when BizTalk processes messages, output xml file gets serialized into "UTF-8" encoding format. But declaration format inside xml is still "iso-8859-1".

    Because of this other application still assumes this as UTF-8. Even IE complaints "Switch from current encoding to specified encoding not supported."

    Can you suggest how can I make sure that BizTalk also uses same encoding as defined inside XML document before creating output?

    FYI: input xml is being consumed by file receive location having custom pipeline. Various processing (i.e. Orchestration etc), the send pipeline is also file with custom pipeline. Any smart suggestion (such as config change, without code change etc) to avoid this issue?

    I saw other post like this, and works if I do xml write from c# code. However in my case its send port who is creating file.


    Please mark it as Answer if this answers your question
    Thanks.
    Mo
    The contents I write here is my personal views, not the view of my employer and anyone else.

    Tuesday, August 7, 2012 2:17 PM

Answers

  • Hello Mazin,

    I won't have easy go in this case because so many pipelines needs to be adjusted.
    Anyways it seems there is no easy alternative like I am looking. For now I have suggested my customer to send UTF-8 encoding xml since it includes most of the characters already.

    Thanks for your reply !


    Please mark it as Answer if this answers your question
    Thanks.
    Mo
    The contents I write here is my personal views, not the view of my employer and anyone else.

    Wednesday, August 8, 2012 4:20 PM

All replies

  • Hi Mohan,

    There is a custom pipeline to fix the encoding of your message. check the link below:

    http://winterdom.com/2006/01/fixmessageencodingcustompipelinecomponentsample

    once you deploy it, it will give you a list of encodings to choose from.

    Hope that helps,


    Regards, Mazin - MCTS BizTalk Server 2006


    Tuesday, August 7, 2012 3:03 PM
  • Hello Mazin,

    I won't have easy go in this case because so many pipelines needs to be adjusted.
    Anyways it seems there is no easy alternative like I am looking. For now I have suggested my customer to send UTF-8 encoding xml since it includes most of the characters already.

    Thanks for your reply !


    Please mark it as Answer if this answers your question
    Thanks.
    Mo
    The contents I write here is my personal views, not the view of my employer and anyone else.

    Wednesday, August 8, 2012 4:20 PM