UTF Encoding

Viewing 1 reply thread
  • Author
    Posts
    • #25721

      Hi,

      I am getting the XML message, which has some german and some times french characters. And the XML I am getting is UTF-8. But My BizTalk is not able to read those characters.

      I thought, I have to change the <?xml version=”1.0″ encoding=”utf-16″ ?> to <?xml version=”1.0″ encoding=”utf-8″ ?>  in my schema. But is there a property in schame where I can change the same? I have tried to open the schema in notepad and changed there. But when I am open the same schema in VS it’s not Opening. Its saying Invalid schema. What I did after changed in notepad I saved the Notepad as Encoding–> UTF-8. Then its opening in the VS. But when I open the same schema in VS its showing  <?xml version=”1.0″ encoding=”utf-16″ ?> and when I open the same schema in Notepad Its showing  <?xml version=”1.0″ encoding=”utf-8″ ?>.  And BizTalk is not able to read the special characters in both the changes.

      Please help me…

      Thanks In Advance…

      Regards,

      Ram

    • #25723

      Hello Ram.

      You can change the UTF code in the schema properties down by the area called “flat file”. Open your schema in VS and got to the first node called “<schema>”. Then go to the properties and change the code page. I haven’t tried it before, but this is the only way I could find.

      I hope this helps.

      Wolfgang

      • #25726

        Hi Wolfgang,

        I didn’t find the property. Can you please let me know the exact property name and what has to be changed?

        Thanks for the early response.

        Regards,

        Ram

        • #25727

          Hi Ram.

          Ok I see it could be a little bit different because I run VS 2008.

          I open the schema in VS.

          On the left side I see my schema structure with all the nodes in this schema.

          The first node is called <Schema>.

          I select this node and than I go to the properties of this node.

          In the properties area there is a field called “Code Page”.

          There I can change the Format of my schema, e.g. like UTF-8

          Perhaps you can right mouse click on the <Schema>-node and choose properties to get the properties you need.

          Is this working for you?

          Wolfgang

          • #25728

            Hi Wolggang,

            Thanks a lot for the reply. I am using VS 2005 and here I couldn’t find the field called “Code Page” in the property of the <schema>.

            But i still managed to solve the problem, I was using a receive pipeline to remove the namespace. There I add the below  line.

             

            Now its working for me.

            byte[] outBytes = System.Text.Encoding.Unicode.GetBytes(outputMessageText.ToString());

            Thanks a lot.

            • #25729

              Hello Ram.

              Sounds great – good to know another workaround for this! Thanks for sharing it.

              Wolfgang 

          • #26164

            from where you have seen i am not understanding

            • #26578

              Hello Ram,

              Where i have to add this code in RCV pipelin?

              byte[] outBytes = System.Text.Encoding.Unicode.GetBytes(outputMessageText.ToString());

              Regards,

              Raj

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.