Home Development Tools sublime Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3

Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3

Apr 21, 2021 am 11:20 AM

The following tutorial column of sublime will introduce to you how to solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3. I hope it will be helpful to friends in need!

1. Install the package manager Package Control

First install a Package Control package, this is A package used to install other plug-ins. No matter what plug-ins are installed, this package must be installed first.
Official website address: https://packagecontrol.io/installation

Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3

After installation, restart Sublime Text 3, and there will be an additional option under the preferences column. Package Control. It is recommended to use the shortcut key Command shift p to open Package Control.
Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3

2. Install ConvertToUTF8 and GBK Encoding Support

After installing Package Control, use Press the ctrl shift p shortcut key to enter the command mode,
enter Install Package, press Enter,
Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3

Search in the installation package box that pops up later: ConvertToUTF8 or GBK Encoding Support, select and click to install. (The author has already installed it, so I can’t see it.)
Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3

Restart Sublime Text, close the gbk file, and reopen gbk again The Chinese files will not be garbled.

If you still see no, you can install Codecs33.

The above is the detailed content of Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to run the code in sublime? How to run the code in sublime? Mar 06, 2025 am 11:36 AM

This article explains how to execute code in Sublime Text using external tools and build systems. It details creating language-specific build systems (e.g., Python, C , JavaScript) via JSON files, and running code via Ctrl B. While Sublime Text

Is sublime free? Is sublime free? Mar 06, 2025 am 11:29 AM

Sublime Text is a freemium code editor offering full functionality for free, albeit with occasional license prompts. The article discusses its licensing model, feature limitations (primarily the prompts), and paid-version benefits (primarily removin

How to compile and run java code in sublime How to compile and run java code in sublime Mar 06, 2025 am 11:35 AM

This article guides Java developers on configuring Sublime Text for compiling and running Java code. It details setting up a custom build system (JavaC.sublime-build) to handle compilation and execution, emphasizing JDK installation and PATH environ

How to run sublime code C language How to run sublime code C language Mar 06, 2025 am 11:33 AM

This article explains how to run C code in Sublime Text. It emphasizes that Sublime Text needs an external compiler (like GCC) and a build system (a .sublime-build file) to compile and execute C code. The process involves installing a compiler, defi

Sublime Set encoding format Sublime Set encoding format Mar 06, 2025 am 11:25 AM

This article explains Sublime Text's per-file encoding handling, lacking a global default. It emphasizes UTF-8 as the best practice for consistency and broad compatibility, advising users to explicitly save files with the chosen encoding and levera

What is sublime for? What is sublime software? What is sublime for? What is sublime software? Mar 06, 2025 am 11:30 AM

Sublime Text is a fast, customizable cross-platform text editor popular with developers. Its key features include multiple selections, Goto Anything, a command palette, and extensive plugin support. While free to use, a license removes nag screens a

Sublime test installation tutorial Sublime test installation tutorial Mar 06, 2025 am 11:37 AM

This tutorial guides Sublime Text installation on Windows, package management (using Package Control or manual methods), and interface customization (themes, keybindings, settings, plugins). It addresses the common issue of setting up and personali

sublime column mode sublime column mode Mar 06, 2025 am 11:24 AM

This article explains Sublime Text's powerful built-in column selection feature. It details activation methods (Alt/Option key mouse drag), selection manipulation using the mouse and keyboard shortcuts, and clarifies that dedicated plugins aren't

See all articles