XML Encoding question Home Page › Forums › BizTalk 2004 – BizTalk 2010 › XML Encoding question This topic has 5 replies, 1 voice, and was last updated 8 years, 4 months ago by community-content. Viewing 2 reply threads Author Posts May 2, 2008 at 2:03 PM #19543 community-content I have an xml file in utf8; is their a BT Tool taht will generate an xsd from the xml file? Will the xsd be utf-8 or utf-16? I used visual studio to create my xsd, but it is utf-16, can I just change to utf-8? Thanks in advance, Michael Houston, TX, USA (At least for now, Mexico in the future?) May 5, 2008 at 4:00 AM #19551 community-content I don’t believe you can change this, BizTalk will always convert to utf-16, if you change the schema. Can I ask why you wish to change the character set of the Biztalk schema. May 5, 2008 at 8:46 AM #19554 community-content Hi, I was getting an error, indicating that BT could mnot fid the schema, so It htought the UTF-8 had something to do with it. Thanks Mike May 5, 2008 at 4:31 PM #19559 community-content When did BizTalk complain about the missing file? Are you using include or import in another schema? May 6, 2008 at 2:51 AM #19565 community-content Mike, As per Greg’s response, it is not possible to set the encoding of the schema used by BizTalk internally, however you can control the encoding of the output message, although there is a gotcha – see http://www.modhul.com/2008/04/03/xmlassembler-targetcharset-property-error-in-biztalk-2006-2006-r2/ for more information. Is your schema error in Visual Studio when you try and open the schema or at runtime in the Event Log? Rgds, Nick. May 8, 2008 at 5:55 PM #19603 community-content Hi Michael, [quote user="Anonymous"] is their a BT Tool taht will generate an xsd from the xml file? Will the xsd be utf-8 or utf-16? [/quote] Yes, In Visual Studio, do the following: Open any BizTalk project right-click the project and say add-> Generated Items Choose Schema from well-formed XML. Hope it helps Mike Author Posts Viewing 2 reply threads The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies. Log in / Register