BizTalk Server General - Biztalk 2006 :: encoding of XML files and XSD files

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > March 2006 > Biztalk 2006 :: encoding of XML files and XSD files





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Biztalk 2006 :: encoding of XML files and XSD files
Randal van Splunteren

2006-03-21, 3:10 am

Hi,

When I create an XML file or XSD file using visual studio 2005 from within
a biztalk project the created files are UTF-16 encoded. When I do the same
from within, let say a C# console project, the created files are UTF-8 encoded.
Does anyone know the reason for this? Why are biztalk 2006 files UTF-16 encoded
by default? Did biztalk 2004 also use this encoding? Also, is it possible
to switch to another default encoding for biztalk projects?

TIA,

Randal


Tomas Restrepo \(MVP\)

2006-03-21, 3:10 am

Randall,

>
> When I create an XML file or XSD file using visual studio 2005 from within
> a biztalk project the created files are UTF-16 encoded. When I do the same
> from within, let say a C# console project, the created files are UTF-8
> encoded.
> Does anyone know the reason for this?


I think the difference is in how the project and project item templates are
set up for the two kinds of projects. For most intented scenarios, this
really shouldn't be a problem, though.

AFAIK, you are free to change them if you need to, as well.

> Why are biztalk 2006 files UTF-16 encoded by default? Did biztalk 2004
> also use this encoding?


BizTalk can use whatever encoding you need, though it has a few standard
ways of figuring (or being told) what encoding an incoming message is in.
You'll find those in the documentation for the XmlDisassembler and the Flat
File Disassembler (as each one behaves a little bit differently).


> Also, is it possible to switch to another default encoding for biztalk
> projects?


I'm not sure. You might be able to get away with it by modifying the biztalk
project item templates, though I haven't tried it.


--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com