Getting started with JSP built-in objects (3) Request object detailed "02"

Source: Internet
Author: User

There are many methods about the request object, in the JSP built-in object "03" request Detailed "01", we have learned the request object in the parameter acceptance problem, then look at the other methods of request now:

Garbled solution (Setcharacterencoding ())

Garbled but the problem in web development Big Brother, I believe that a lot of people who have come into contact with this thing have a considerable headache.

What is garbled?

In the running of the program, the original should be displayed in the Chinese unexpectedly turned into a baffling other characters, then we say that we met garbled. Let's take the following procedure as an example:

request_01.jsp     
   <%@ page language= "java" contenttype= "text/html" pageencoding= "GBK"%>     
  

Related Article

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.