Liquid XML Forum

Messages in this topic - RSS

Home » XML Data Binding C#, VB .Net and Silverlight » How to force UTF-8 ?

Questions, Bugs, and Suggestions relating to the Liquid XML Data Binding Product when used on C# VB .Net or Silverlight.
23/03/2012 10:41:24

Laurent Jordi
Laurent Jordi
Posts: 3

I need to have UTF-8 Xml Files to communicate with my target service

<?xml version="1.0" encoding="UTF-8"?>

In the ToXml method, I dont find such an option...

Thanks for help,

Best regards,

0 permalink
23/03/2012 16:32:59

Liquid Support
Liquid Support
Posts: 160
For some background, please see knowledge base article:

ToXml() always returns the standard encoding for strings of the programming language used, i.e. in C++ it would be the local code page, and for C++ built as UNICODE and for other languages (C#, VB.Net, Java, VB6) it would be Unicode. This is so the data can be manipulated as strings within your code.

ToXmlFile() and ToXmlStream() deal with Binary Data in the encoding specified for the XML Document, which you can pass as a parameter.

Hope this helps.
0 permalink

Try Liquid XML Free and see how we can help you today Free Trial