System.Xml.XmlException: There is no Unicode byte order mark. Cannot switch to Unicode.
The path passed to the function is load file C: \ workspace \ GitHub \ chuck Lu \ chuck fork \ fatantelope \ fatantelope. Commandline \ bin \ debug \.. \.. \.. \ consoleapp1 \ sample \ source.xml failed
It should be handled with getfullpath
<?xml version=”1.0″ encoding=”utf-8″?& gt; The code at the beginning of the file does not match the code saved in the file itself, so an error is reported
Similar Posts:
- UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-1:
- [Solved] Python Numpy Data load error: Unicode error: unpicking a python object failed: Unicode decodeerror
- [Solved] Java compilation error: unmapped character encoding GBK
- The difference between UTF-8 and utf-8-sig
- Error reporting and resolution of Python 3 using binascii method
- After the JVM is started, setting the system property file.encoding again cannot affect the default encoding of the system & sun.jnu.encoding
- [Solved] UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x89 in position 0: invalid start byte
- Non-ASCII character ‘\xe8’ in file xxx.py on line 8, but no encoding declared
- An error occurred when the idea was compiled: java.io.ioexception: cannot create empty file:
- TypeError: the JSON object must be str, not ‘bytes’