Chinese garbled characters in eclipse for PHP

Source: Internet
Author: User

Chinese garbled characters in eclipse for PHP

 

UTF-8 format PHP, Chinese are garbled.

 

If you enter Chinese Characters in eclipse at this time, the cp1252 error will occur (cp1252 does not support XXXX)

 

Solution:

 

Windows-> preferences-> General Open click workspace. The text file encoding is the text encoding default on the right.Cp1252Click the other drop-down menu and select UTF-8 to compileProgram

 

From:

Http://271788203.javaeye.com/blog/497413

 

Follow-up:

Open the problematic file again, and the Chinese characters are displayed. The garbled characters disappear.

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.