How to Encode XML in UTF-8
XML files contain specifically formatted data that is processed and viewed by Web servers and Web browsers. If you want to specify a specific UTF-8 character type, you must add the encoding option at the very top of the XML file. All XML files have an "XML" tag at the top, but the character encoding property is optional.
Instructions
-
-
1
Right-click the XML file you want to edit and select "Open With." Click your XML editor in the list of programs. You can also use Notepad to add the UTF-8 encoding type.
-
2
Add the following line of code at the top of the file:
<?xml version="1.0" encoding="UTF-8"?>
-
-
3
Press the "Ctrl" and "S" keys to save the file changes. If you want to review the data file, open the file in an XML editor or your default Web browser.
-
1