MSXML 2.6 or later supports UTF-7 encoding.
Based on the XML 1.0 standard, Section 4.3.3, a valid XML file is required to be one of following:
- A Unicode file in UTF-8 format.
- A Unicode file in UTF-16 format.
- A file in some other character encoding (for example, ASCII) that has as its very first bytes the
Many text editors and word processors allow you to save Unicode text files, known as encoded text in Microsoft Word, in many different transfer encodings, including UTF-7. So if you save a document in Word as "encoded text UTF-7," MSXML will refuse to load it for the above reasons.
Steps to Reproduce Behavior
- Create a simple XML file in Word 2000:
- Save the file as encoded text. When Word asks you if you wish to lose formatting, click Yes. Word will then prompt you for an encoding format to use. Select UTF-7, and then save the document as cap file name TestUTF7.xml.
- Load cap file name TestUTF7.xml in Internet Explorer 5. You will receive the following error message:Invalid at the top level of the document. Line 1, Position 1
http://www.unicode.org/ for the latest Unicode Standard.
Artikelnummer: 251134 – Letzte Überarbeitung: 20.08.2008 – Revision: 1