XML parsing: line 1, character 38, unable to switch the encoding

When you will create an Xml file with the Encoding type UTF-8, they it will give you this error:
“XML parsing: line 1, character 38, unable to switch the encoding”

To resolve this error you need to set the Encoding type to UNICODE i.e. UTF-16. Test it using this encoding type UNICODE / UTF-16, it will resolve your error.

Regards,
Vijay Modi

Advertisements

About Vijay Modi

Having 12+ years of experience in web application development. Expertise in various domains like E-Commerce, E-Learning, Insurance. I have expertise in web application development, window application development, Performance improvement, bug fixing etc. I have worked on various Microsoft technologies including ASP.Net, MVC, WebApi, WCF, Entity Framework, WPF, Window Application Development, AWS, Azure, AngularJS 2.0 / 1.5.2, .NetCore framework, jQuery. I am believing in quality work and achieving deadlines. Also like to work on new technologies and quick learner.
This entry was posted in BizTalk Server and tagged , , , . Bookmark the permalink.

7 Responses to XML parsing: line 1, character 38, unable to switch the encoding

  1. Pingback: Bookmarks about Switch

  2. elperucho says:

    Hi thanks brother…!

  3. SShah says:

    You really saved me. I spent a lot of time figuring out this problem. Thanks a bunch.

  4. Behtash says:

    Thanks, it is good trick

  5. Rohit Sakalle says:

    Hi I am passing string data as xml to sql server 2008. when i pass & or ‘ in string then I get xml parser error or white space required. how can i pass ‘ and & in string and still not get paresing error. Please help

  6. Igor says:

    “set the Encoding type to UNICODE” – where??????????????

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s