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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to open large files using Notepad++? Start Notepad++, click File > Open, and select the large file in the file browser. Common problems you may encounter: slow loading of files, "file too big" errors, insufficient memory, corrupted files. Ways to optimize performance: disable plug-ins, adjust settings, use multi-threading.

Font size can be adjusted in Notepad by following these steps: 1. Open Notepad; 2. Go to the "Format" menu; 3. Select the "Font" option; 4. In the "Font" window, use the "Size" field to adjust the font size; 5. Click the OK button to apply the changes.

When installing Notepad++ components, it is recommended to select the following required components: NppExec, Compare, Multi-Edit, Spell Checker, XML Tools. Optional components are available to enhance specific functionality, including Auto Completion, Column Editor, DSpellCheck, Hex Editor, and Plugin Manager. Before installing components, identify frequently used functions and consider compatibility and stability. Install only the components you need to avoid unnecessary clutter.

Notepad++ is a free, open source text editor widely used for programming, web development and text manipulation. Its main uses include: Text editing and viewing: Create, edit and view plain text files, supporting tabs and syntax highlighting. Programming: Supports syntax highlighting, code folding and auto-completion for multiple programming languages, and integrates debuggers and version control plug-ins. Web development: Provides syntax highlighting, code verification and auto-completion for HTML, CSS and JavaScript to facilitate web page creation and editing. Other uses: For text processing, scripting, and document editing.

Through regular expressions, Notepad++ can filter data by conditions: 1. Open the file and use the "Find" window; 2. Select "Regular Expression" mode; 3. Enter a regular expression to define conditions, such as finding lines containing "foo" :foo.

Notepad++ does not provide a Chinese interface by default. The switching steps are as follows: download the Chinese language pack and complete the installation when prompted; restart Notepad++ and enter the "Preferences" window; select "Chinese Simplified" in the "Language" tab and click "OK".

Notepad++ itself cannot run C language programs and requires an external compiler to compile and execute the code. In order to use an external compiler, you can follow the following steps to set it up: 1. Download and install the C language compiler; 2. Create a custom tool in Notepad++ and configure the compiler executable file path and parameters; 3. Create the C language program and save it with a .c file extension; 4. Select the C language program file and select a custom tool from the "Run" menu to compile; 5. View the compilation results and output a compilation error or success message. If the compilation is successful, an executable file will be generated.

To run Perl code in Notepad++ follow these steps: Install a Perl interpreter. Configure Notepad++, select Perl in the Language setting and enter the path to the Perl executable file. Write Perl code. Select the Perl interpreter in the NppExec plugin and run the code. View the output in the "Console" menu bar.
