Sublime text is a very powerful editor, but it does not provide good support for Chinese. When sublime text 2 is used, you can install the encoding package through the command line, however, sublime Text 3 cannot be solved in this way.
Download a converttoutf8 package after installing sublime Text 3 and put it in C: \ Users \ User Name \ appdata \ roaming \ sublime Text 3 \ packages (the installation directory may not be, but you can open this directory in preference-browse packages in sublime) directory, restart sublime text, open the garbled file, and press Ctrl + Shift + C.
Converttoutf8 package: http://download.csdn.net/detail/pipisorry/7737389
Appendix: sublime Text 3 shortcut
Plug-in usage: Ctrl + Shift + P Call Command Panel, some commands starting with "package control:", commonly used is install package (installation extension), list packages (list all extensions), remove package (remove extension), upgrade package (upgrade extension) Ctrl + d (press the shortcut key repeatedly, you can continue to select the next same text and edit it at the same time.) Ctrl + G jump to the corresponding row Ctrl + J merge row (multiple rows to be merged have been selected) CTRL + l select the entire line (Press and hold-continue to select downstream) CTRL + M move the cursor to the start or end position in the brackets Ctrl + T word interchange Ctrl + u soft undo Ctrl + P find files in the current project and quick search; enter @ to search for the main file title/function, or enter: jump to a line of the file; CTRL + R quickly list/jump to a function Ctrl + k backspace Delete from cursor to line head Ctrl + K + B enable/disable sidebar Ctrl + KK Delete from cursor to line end CTRL + K + T fold attribute Ctrl + K + u to uppercase Ctrl + K + L to lowercase Ctrl + K + 0 to expand all Ctrl + enter Insert rows (quick line feed) CTRL + tab in the current window switch Ctrl + Shift + A select the cursor position parent tag Ctrl + Shift + D copy the entire row where the cursor is located, press Ctrl + Shift + F to insert the row into the folder, different from the normal Editor, sublime allows you to add Multiple folders to search for Ctrl + Shift + k Delete the entire line Ctrl + Shift + l select multiple lines with the mouse (press the shortcut key ), you can edit the content in the brackets by pressing CTRL + Shift + M. (Press and hold-continue to select the parent parenthesis) CTRL + Shift + P open the Command Panel Ctrl + Shift +/comment the selected content Ctrl + Shift + ← you can move this line of code, and switch to the upstream Ctrl + Shift + ← you can move this line of code, switch with downstream Ctrl + Shift + [collapse code Ctrl + Shift +] expand code Ctrl + Shift + enter insert row before cursor Ctrl + Pagedown, CTRL + Pageup file switch in the order of enabling CTRL + z undo Ctrl + y undo Ctrl + F2 set bookmarks Ctrl +/comment out the entire line (if the selected content, same as "Ctrl + Shift +/") Ctrl + left mouse button can select multiple texts to edit at the same time shift + right mouse (or use the middle mouse) you can use the mouse to vertically select multiple rows SHIFT + F2 on the bookmarks SHIFT + TAB to remove indent Alt + Shift + 1 (non-keypad) window split screen, restore the default one-screen Alt + Shift + 2 left/right split screen-2 columns Alt + Shift + 3 left/right split screen-3 columns Alt + Shift + 4 left/right split screen-4 columns Alt + Shift + 5 minutes 4-screen Alt + Shift + 8 Vertical Split screen-2-screen Alt + Shift + 9 Vertical Split screen-3-screen Alt +. close the current tag Alt + F3 and press the shortcut key, you can select all the same text at a time, edit tab indentation, and automatically complete F2 next bookmarks F6 detection syntax error F9 rows sorting (by a-z) F11 full screen mode
From: http://blog.csdn.net/pipisorry/article/details/38473407