preferences->general" in order; then click "workspace"; finally click "other" and pull down the menu, select "UTF-8"."/> preferences->general" in order; then click "workspace"; finally click "other" and pull down the menu, select "UTF-8".">

Home  >  Article  >  Backend Development  >  How to solve the garbled problem in eclipse for php

How to solve the garbled problem in eclipse for php

藏色散人
藏色散人Original
2020-07-25 10:06:332074browse

Solution to garbled characters in eclipse for php: First open "windows->preferences->general"; then click "workspace"; finally click "other" and drop down the menu, select "UTF-8" That’s it.

How to solve the garbled problem in eclipse for php

Recommended: "PHP Tutorial"

EClipse for PHP Chinese garbled problem

PHP in UTF-8 format, Chinese characters are all garbled.

If you enter Chinese in EClipse at this time, there will be a CP1252 error (CP1252 does not support xxxx)

Solution:

windows->preferences->general Open and click workspace. At this time, text file encoding appears on the right, which is the text encoding default cp1252. Click other Select UTF-8 from the drop-down menu to compile the program

Follow-up:

Open the problem file again, Chinese appears, and garbled characters disappear.

The above is the detailed content of How to solve the garbled problem in eclipse for php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn