I am maintaining a website and using PHP for troubleshooting. Now I want to add a page, but the problem arises. The basic page structure is & lt ;? Phpinclude (& quot; A. php & quot ;);? & Gt; then the code XXXXXXXX ends and is & lt ;? Phpinclude (& quot; B. php & ask questions
I am currently maintaining a website, which is made using PHP. Now I want to add a page, but the problem arises. The basic structure of the page is
Then code XXXXXXXX
End is
But the strange thing is that the newly added page will contain garbled characters, and the encoding format is set in A. php. In this case, why is there no garbled code on other pages? Then I copied all the other pages and opened them on a new page with garbled characters. I am so confused that I really don't know what went wrong. For more information, see.
------ Solution --------------------
Check the file encoding of other files. Note that the file encoding is the same as the new file encoding.
------ Solution --------------------
File encoding
------ Solution --------------------
Set encoding in your editor. Select the encoding before saving.
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