Sorry, I recently downloaded a source code for php encoding. the Chinese characters in the source code are garbled, similar to the following :: why ?; // The specification is very short. please refer to the encoding below when there are too many encoded bytes. the encoding is UTF-8, what should I do if I want to convert it into a normal Chinese character .. Beg for the answer, php encoding
Recently, I downloaded a source code from the internet. the Chinese characters in the source code are garbled like the following ::
Why ?; // The specification is short.
His encoding is utf-8. what should I do if I want to convert it into a normal Chinese character .....
------ Solution --------------------
This is about file encoding. Open it in the editor and save the question utf8.
------ Solution --------------------
Open the file in the editor and modify the encoding when saving the file. it must be displayed normally. try it.
------ Solution --------------------
In your editor, change the encoding to UTF-8 and save it.
------ Solution --------------------
Garbled code occurs,
View 3 aspects 1. browser character encoding settings 2. editor encoding settings 3. check whether these three aspects are consistent.
------ Solution --------------------
Use notepad ++
You can choose which encoding to open and then choose which encoding to save.
------ Solution --------------------
Use Notepad to open Chinese characters correctly and save them again
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