Home  >  Article  >  Development Tools  >  Notepad opens with garbled characters

Notepad opens with garbled characters

angryTom
angryTomOriginal
2019-08-08 13:38:3312747browse

Notepad opens with garbled characters

The speed of Notepad2 is indeed not comparable to the one that comes with the system. When opening an 8M TXT, the system's Notepad will be stuck for half a minute. Notepad2 opens directly, but it is the only one I have used so far. One point is that some files can be opened with Notepad without any problem, but with Notepad2 they are garbled. Generally this is not the case, but it does happen from time to time. Even after changing the encoding, it still cannot be displayed normally. Here is the solution.

Recommended tutorial: Notepad usage tutorial

## 

File-Encoding-Default, check "Skip" Automatic Unicode Detection" also does not interpret encoding identifiers.

The ones on the Internet are all old versions and there is no "no interpretation of encoding mark".

Opening the file edited by Notepad displays garbled characters, as follows

഍ꆰ십뎬좺ꎬ쓣뫃ꎬ컒쏇폖볻쏦쇋ꆣꆱ룕뷸킣쏅ꎬ십뎬좺펭쏦뾴떽쇋튻룶 죋ꎬ쎻쿫떽쯽뻓좻믡살헢샯ꆣඡ냄 쎣곀듕틁벷뾡뇂곈뫋뮺���늻뛕얾닀���겿짒닃믗풴뷈쿎꫗풼뫓탕죁ꚡꌍꆰ헒쓣늻 뿉틔싰ꎿꆱ

Solution

Press F8

# But what is the function of pressing the F8 key? And there is no function using F8 as a shortcut key in the menu. I checked again and found out why:

Notepad2 has a function to automatically detect the text encoding format. If the text is pure Chinese and does not contain any single-byte English characters or numbers, an error will occur during automatic detection. .

However, it is too troublesome to press F8 every time. Fortunately, the author has considered this: you can turn off automatic detection and force notepad2 to open it in ansi encoding format every time it opens text. The method is: select the menu " "File" - "Encoding" - "Default", the "Select Encoding" dialog box will pop up, select "Do not automatically detect Unicode detection" (" Skip automatic Unicode detection.") check box, or (Don't use automatic Unicode detection.) click "OK", that's it. In the future, you don't need to press F8 to open pure Chinese text and garbled characters will not be displayed. .

For the system, replace the directory of notepad.exe system: C:\Windows\System32 and C:\Windows

And nosepad2 will automatically save the current setting every time it exits after opening the program. Some settings

can be used in the vista system. To save, you must start running as an administrator

Otherwise, it will not be saved. Because this permission is required for the c drive...so the above That's right, if you want to save it, you must first make sure it is running as an administrator.

Another point is automatic line wrapping. I think it is best to check it first... for convenience. Under Vista Of course, the C drive must be run as an administrator first to have an effect...and then exit

Due to problems with Chinese localization or low version of the software, some cannot be automatically recognized and can only be set, and these large and small sizes appear. The problem, after all, is that foreign software is not targeted at Chinese.

The above is the detailed content of Notepad opens with garbled characters. 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