Is “EF BF BF” an allowed character in XML (UTF-8)?
<?xml version="1.0" encoding="UTF-8" ?>
<XML>
<DOCUMENT>
<CONTENT>" "</CONTENT>
</DOCUMENT>
</XML>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If “EF BF BF” is a typo, and you meant “EF BB BF”:
Yes, if it is the first bytes. They are the “BOM”, Byte Order Mark, used to identify the endianness of the file.
For UTF-16 and UTF-32-encoded files this is mandatory.For UTF-8, this is optional. Some systems might be confused by it if it is present, and it might give unexpected behavior if an UTF-8-file with BOM is used in a context expecting for example ISO-8859-1.
Edit:
If “EF BF BF” isn’t a typo, it is not valid UTF-8 anywhere in the file.