Liquid Technologies Support Forum

The new Liquid Support forum for 2013
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
Hello

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,

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

Liquid Support
Liquid Support
Posts: 110
Hi,
For some background, please see knowledge base article:
http://www.liquid-technologies.com/SmarterTrack/KB/a87/why-do-i-get-error-error-not-well-formed-invalid-token.aspx

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