The xml tag of JSTL is used to analyze and display xml files. Chinese characters are garbled. If the xml file uses UTF-8, jsp uses UTF-8, and the html character set is set to UTF-8, garbled characters should not appear. Use the xml tag of JSTL to analyze and display the xml file. the problem of Chinese # code/5829.html "target =" _ blank "> garbled characters occurs. If the xml file uses UTF-8, jsp uses UTF-8, and the html character set is set to UTF-8, garbled characters should not appear.
After careful analysis, the problem occurs in the c: import statement. if you specify the correct character set for the statement, no garbled characters will occur.
Html code
Read content:
The content of test. cxml is as follows:
Blog of old Wang next door, wallimn
Http://wallimn.iteye.com </Description>
This is a piece of Chinese information.
The above is a detailed description of the case where JSTL reads xml Chinese garbled characters. For more information, see other related articles in the first PHP community!