How to solve the garbled problem in eclipse for php

藏色散人
Release: 2023-03-03 10:04:02
Original
2065 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!