Can we change XML encoding from utf-16 to utf -8?

Lunarus

New Member
I have written a code for generating XML with UTF-8 encoding.I always validate the XML with XSD file. In the same code i need UTF-16 encoding. Because one of my XSD file is of UTF-16 encoding.But in my existing code it is not accepted. it gives following error.\[code\]FAILED: Fatal error: Document labelled UTF-16 but has UTF-8 content at filepath/standard.xsd:1.\[/code\]and at line 1 of XSD this tag is defined \[code\]<?xml version="1.0" encoding="utf-16"?>\[/code\]How can i validate it with utf-8 encoding?Is there any way to change UTF-16 to UTF-8 encoding.Thanks in advance.
 
Back
Top