Monday, February 14, 2005

Handling Different Encodings in BizTalk Server 2004

BizTalk Server 2004 supports many different encodings for XML and flat file documents, for example UTF-16, UTF-8, Simplified Chinese GBK, Simplified Chinese GB18030, and so on.

For inbound documents, BizTalk Server can recognize the encoding declaration in XML documents, such as "". The flat file schema has a Code Page property to indicate the encoding of the inbound flat file documents.

For outbound documents, XML and flat file assemblers use the Target charset property. If this property is specified, BizTalk Server converts the outbound documents to the specified character set regardless of the original one. If no Target charset property is set, XML uses the UTF-8 protocol and flat files use the code page specified in the flat file schema.

­Example

Let say we have “£” in our incoming source.

This symbol you can define using ISO-8859-1 encoding.

So make your inbound document like this and as said BizTalk server recognize all standard encodings so the schema that you have created in BizTalk would successfully recognize this xml as valid.

?xml version="1.0" encoding="ISO-8859-1"?
ns0:Root xmlns:ns0="http://MapTrial.Incoming"
Name>transfering £ 500/ns0:Root>

2 Comments:

Anonymous Anonymous said...

Hi man thanks for the info

It really helped me in solving one of our issues.

4:05 AM  
Blogger Tareq Ali said...

great Aman,
would u give us more information ab out XML in coding

1:38 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home