• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 592
  • Last Modified:

How do I add "encoding="utf-8" ?>" in XML by XML Serialization?

How do I add following (code snippet) to my XML file generated by XML serialization:

What I want:
<?xml version="1.0" encoding="utf-8" ?> 
What I am getting:
<?xml version="1.0" ?>

Open in new window

2 Solutions
meetpdAuthor Commented:
Found the solution. I am using search and replace operation on the file to achieve it.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now