an ISO 8859-1 character:

Source: Internet
Author: User an ISO 8859-1 character:xxx

This problem may be due to the effect of outputstream output Chinese characters.

Response.setcontenttype ("Text/html;charset=utf-8");
Response.getoutputstream (). Print ("Chinese text"); The guild went wrong.
Response.getwriter (). Print ("Chinese text"); Just change it.
Response.getwriter (). Close ();

The reason I personally think is because OutputStream is output string in bytes, it needs to conform to that ISO 8859-1 encoding, but the string to be output is UTF8 encoded, so there is a problem. But the root of the problem, I really did not figure out.

It would be nice to change into writer. Maybe it's the difference between the InputStream and the Reader,outputstream and writer. an ISO 8859-1 character:

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: 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.