In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to view atom php file garbled, the content is concise and easy to understand, absolutely can make your eyes bright, through the detailed introduction of this article, I hope you can get something.
What language is php php, a nested acronym, is the abbreviation of English Hypertext preprocessing language (PHP:Hypertext Preprocessor). PHP is a kind of HTML embedded language. PHP is somewhat similar to Microsoft's ASP. It is a scripting language that embeds HTML documents on the server. The style of the language is similar to C language, and now it is widely used by many website programmers.
Atom check php file garbled how to do?
Atom view php file garbled solutions: 1, open atom and view character coding; 2, manually to change encoding for the corresponding character coding.
This article operating environment: windows7 system, atom0.194.0 version, DELL G3 computer
Atom views php files with garbled codes
[background]
Twists and turns:
In the meantime, I want to see if it is convenient to view file encodings in atom.
[toss process]
1. Feel for yourself first.
There is one in the right:
Change encoding
But there's no view encoding or anything.
2. In File-> Settings- >, you can see:
File Encoding
However, the current file encoding is not viewed:
3. Search:
Atom view current file encoding
Reference:
Try that shortcut key:
Ctrl-shift-U
When you find and right-click in front, select:
Change encoding
Is the same, opened the file encoding change dialog box:
Here, you can see:
UTF-8 is currently selected
-> indicates that the current file is UTF-8 encoded
Then go again:
Change to another code, such as GBK, then open it, and then see if it will be automatically selected to GBK.
-> if you can, you can basically judge:
The encoding selected in ATOM through the change encoding interface is the encoding of the current file.
To try, find the GBK-encoded file and open it:
Here notepad++ is used to replace an ANSI-encoded, or GBK-encoded file, for testing.
Go and open it with atom, change encoding:
As a result, it still shows that it is UTF-8 encoded.
The current encoding is not automatically detected as GBK.
4. In addition, Auto Detect is selected to detect automatically, and the result is not detected as GBK:
And compared to this:
Notepad++ can detect ANSI:
Beyond Compare can also detect that it is ANSI:
5. It turned out that it didn't seem quite right:
It seems that Notepad++ is converted to ANSI encoding, not GBK, but UTF-8.
Anyway, after that,
Use Notepad++ to convert ANSI
And
Convert to UTF8 with ATOM
Convert to GBK with ATOM
Open it with ATOM. They are:
(1) use Notepad++ to convert ANSI
(2) convert to UTF8 with ATOM
(3) convert to GBK with ATOM
If you open it directly, it will be garbled:
Use change encoding to:
Click Auto Detect:
As a result, there is no detection for another code, so it becomes another garbled code:
6. (if the implementation knows that the code is GBK) manually click to convert to GBK:
To display normally:
[summary]
For ATOM, to view the character encoding of the current file:
It seems that UTF-8 can be detected automatically (or is it because its character encoding is set to UTF-8 by default?)
But for other character encodings, such as GBK encoding, they cannot be detected automatically.
-> that is, you cannot view it and you cannot ask ATOM to tell you what the current file encoding is.
-> it's just OK, if you already know the character encoding, manually change encoding the corresponding character encoding, and then the text can be displayed normally.
So:
ATOM editor, cannot intelligently tell you the current file encoding format
(for example, if you convert a file into GBK, and then allow yourself to open it and automatically detect it, you will be able to detect errors.)
However, when you set the correct character encoding (including Chinese encoding such as GBK,GBK18030 in addition to common UTF-8, etc.), characters can be displayed correctly
In general:
In terms of character coding, it's still a little weak, and it doesn't work as well as Notepad++.
The above content is atom how to view the php file garbled, have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.