About "Some characters cannot be mapped using" GB2312 "character encoding. "The question

Source: Internet
Author: User

Today, when I was doing the project, I encountered a problem. Because it is done on the basis of others to change things, so, some things can not be in accordance with their own habits. For example, I created a project when I just built the set character encoding set as UTF-8, and the other people's project is not necessarily the case. Well, there's not much nonsense. The problem is as follows: a JSP page (with Java code in IT) has an encoding set of GB2312, and I modify the contents of the inside to let me save, a save will prompt "Some characters cannot be mapped using" GB2312 "character Encoding ... ". It is not possible to change the character set to change. Later, in the online search, the solution is as follows:

MyEclipse ------------Content Types---click Java Properties file , the bottom appears ' Default edcodng: ', change to UTF-8, then update.

After the change is done, Or not (at this point, my JSP page's encoding set is GB2312). Later, the encoding set was changed to UTF-8, resolving the

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.