


The principle and solution of Chinese garbled characters in sublimetext3
I believe that when many people use sublime to edit html code and run it in the browser, Chinese garbled characters will appear. Then, sublime usage tutorial column will talk about sublimetext3 The principles and solutions to Chinese garbled characters.
1: The principle of Chinese garbled characters in sublimetext3
When we edit the html code and save it locally, when we preview it, unintelligible fonts will appear. This is the effect of Chinese garbled characters. When we open it with a text editor, we use the corresponding character set, which makes the characters unreadable. The garbled characters that appear on the web page are generally caused by the encoding failure. [Recommended article: How to run html code in sublime】
In fact Garbled characters occur not only in HTML pages, but also in the storage of databases and the writing of some advanced code languages. Computers cannot directly store Chinese, but compile Chinese through specific encoding. The corresponding binary is generated, and then the corresponding binary number is generated and stored in the computer. When we want to display Chinese, the binary is compiled into the corresponding Chinese.
Two: sublimetext3 solution
The sublimetext3 solution is that when we store, just select the Chinese encoding method. Please see the following operations for details:
1. Open sublime and find File,
2. After modification, the html will display normally.
The above is a complete introduction to the principles and solutions of Chinese garbled characters in sublimetext3. For more information, please pay attention to the PHP Chinese website.
The above is the detailed content of The principle and solution of Chinese garbled characters in sublimetext3. For more information, please follow other related articles on the PHP Chinese website!

SublimeText is suitable for programming because it is powerful and flexible. 1) Multiple selection and editing functions allow multiple locations to be modified at the same time to improve reconstruction efficiency. 2) The command panel and shortcut keys provide quick access and custom operations to improve development efficiency. 3) Support regular expressions, macros and plug-ins, suitable for advanced usage and performance optimization.

SublimeText is available for purchase for one time, priced at $70, and is permanently used with a PC; VSCode is free to use, and there is no license fee, but extensions and themes may be charged. When choosing, use requirements and budgets should be considered.

To run Sublime Text, you need to download, install the application, purchase a license (optional), and then launch the application. Create or open a file to start encoding.

Sublime Text can be Chineseized through the following steps: 1. Download the Chinese package; 2. Install the Chinese package; 3. Restart Sublime Text; 4. Set the default language (optional); 5. Verify the Chinese version.

There are two ways to delete plugins in Sublime Text: Delete through the Plug-in Manager: Select the plug-in you want to delete and right-click and select "Delete". Manually Delete: Navigate to the user data directory, locate the plugin folder and drag it to the Recycle Bin or Trash.

To write code using GBK encoding in Sublime Text, you need to: 1. Set the project encoding to GBK; 2. Create a new file; 3. Select GBK encoding when saving as; 4. Enter the code using GBK encoding.

sublime can be translated into Chinese as: 1. Sublime, sacred; 2. Extreme, extraordinary; 3. Indescribable, awesome; 4. Sublime thought.

The steps to purchase a Sublime Text registration code are as follows: Visit the website and select "Buy". Select the license type and enter information. Pay and receive emails containing registration codes. Open Sublime Text, go to the License menu and paste the registration code. Click Register to activate your registration code and advanced features.


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

Atom editor mac version download
The most popular open source editor

Dreamweaver CS6
Visual web development tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Chinese version
Chinese version, very easy to use

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.