[Solved]: XML parsing: unrecognized encoding | ASPMANTRA | Asp.Net,MVC,AngularJs,Jquery,Javascript,Sql Server AND WCF snippets and tutorial

[Solved]: XML parsing: unrecognized encoding

In this article I am going to explain how to solve the XML parsing: line 1, character 39, unrecognized encoding error.

When I am working on XML file I have got an error “XML parsing: line 1, character 39, unrecognized encoding” in asp.net.

This error is occurred because of encoding issue. SQL Server expects the XML file should be UTF-16. We have to change the encoding from utf-1, utf-8 to utf-16.

<?xml version="1.0" encoding="utf-1" ?>

Change to

<?xml version="1.0" encoding="utf-16" ?>

Hope this solution will be work for you.

Post a Comment



Contact Form


Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget