But I use a browser to open the parsing errors will occur and format, and I looked at the web page source code, find Chinese part there are a lot of garbage characters and question mark, do you have any solution?
CodePudding user response:
You had better use utf8 encoding in Chinese in the fileCodePudding user response:
It is recommended to use notepad + +, the software has a menu function for Encoding, the original poster can be set to the coding format for debugging,https://notepad-plus-plus.org/
CodePudding user response:
Matter of fact, nothing wrong with the browser may not identify the GB2312 encoding, all XML file after the proposal use UTF8 encodingCodePudding user response:
Use editplus or notepad generate XML directly, in addition, the operating system in English and Chinese there seems to be a big difference between the operating system on a carriage return,I write your own XML on the English legal system of open dislocation line, then the \ r \ n modified into \ n,
CodePudding user response:
File save encoding and XML file head do not match the code will be specified in the problem