Explain the case of JSTL reading xml Chinese garbled characters

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.