Description (中文说明见[README.zh_CN.md](https://github.com/seanliang/ConvertToUTF8/blob/master/README.zh_CN.md))
------------------
With this plugin, you can edit and save the files which encodings are not supported by Sublime Text currently, especially for those used by CJK users, such as GB2312, GBK, BIG5, EUC-KR, EUC-JP, etc. ConvertToUTF8 supports both Sublime Text 2 and 3.
![ConvertToUTF8](http://dl.dropboxusercontent.com/u/31937639/ConvertToUTF8/ConvertToUTF8.gif)
If you want to support this plugin, you can donate via PayPal or Alipay. Thanks! :)
[![PayPal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=GP6Y25N7Q9E26&lc=US&item_name=Buy%20me%20a%20cup%20of%20coffee&item_number=ConvertToUTF8&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHostedGuest) OR
![Alipay QR code](http://dl.dropboxusercontent.com/u/31937639/alipay_code.png)
Note
------------------
** If the plugin can not work properly, you might need to install an extra plugin: [Codecs26](https://github.com/seanliang/Codecs26) for Sublime Text 2 or [Codecs33](https://github.com/seanliang/Codecs33) for Sublime Text 3.
Installation
------------------
Using [Package Control](https://sublime.wbond.net/installation) to find, install and upgrade *ConvertToUTF8* is the recommended method to install this plug-in.
Otherwise, you can download this repository as a zip file, unzip it, and rename the new folder to *ConvertToUTF8*, then move this folder to *Packages* folder of Sublime Text (You can find the *Packages* folder by clicking "Preferences > Browse Packages" menu entry in Sublime Text).
Your folder hierarchy should look like this:
![Folder Hierarchy](http://dl.dropboxusercontent.com/u/31937639/ConvertToUTF8/hierarchy.png)
Configuration
------------------
Please check ConvertToUTF8.sublime-settings file for details. You should save your personal settings in a file named "ConvertToUTF8.sublime-settings" under "User" folder. You can set project-specific settings (except encoding_list and max_cache_size) in the .sublime-project file which can be opened via "Project > Edit Project" menu.
* encoding_list: encoding selection list when detection is failed
* max_cache_size: maximum encoding cache size, 0 means no cache (default: 100)
* max_detect_lines: maximum detection lines, 0 means unlimited (default: 600)
* preview_action: converting the file's content to UTF-8 when previewing it (default: false)
* default_encoding_on_create: specific the default encoding for newly created file (such as "GBK"), empty value means using sublime text's "default_encoding" setting (default: "")
* convert_on_load: convert the file's content to UTF-8 when it is loaded (default: true)
* convert_on_save: convert the file's content from UTF-8 to its original (or specific) encoding when it is saved (default: true)
* convert_on_find: convert the text in Find Results view to UTF-8 (default: false)
* lazy_reload: save file to a temporary location, and reload it in background when switching to other windows or tabs (default: false)
Usage
------------------
In most cases, this plug-in will take care of encoding issues automatically.
You can also use the "File > Set File Encoding to" menu entry to transform between different encodings. For example, you can open a UTF-8 file, and save it to GBK, and vice versa.
Note:
* if convert_on_save is set to `false`, the file will *NEVER* be saved to the selected encoding
* please do not edit the file before the encoding detection process is finished
* please try either increasing the value of max_detect_lines or set the encoding manually if the detection result is not accurate
* due to limitation of API, when lazy_reload is set to `true`, quit Sublime Text immediately after saving a file will cause the file to be saved as UTF-8, the correct content will be reload next time Sublime Text starts
Q & A
------------------
* Q: It is not working after installation, how do I fix it?
A: Please try the following steps:
1. Restart Sublime Text
2. Make sure the plug-in folder is named "ConvertToUTF8" (skip this step if you install via "Package Control")
3. See [Note section above](#note)
4. Disable other encoding related plug-ins
5. Contact me
* Q: Which encodings are supported?
A: Any [encoding supported by Python](http://docs.python.org/library/codecs.html#standard-encodings) will be fine, other encodings like EUC-TW will not be supported.
* Q: Why does the content become a mess when the window is re-activated?
A: This is caused by reloading and has been fixed, please update your *ConvertToUTF8* to latest version.
* Q: Why does ST2 ask me that file "Has changed on disk. Do you want to reload it?" when the window is re-activated.
A: Same reason as above. Please choose "Cancel" if you have unsaved changes to the file.
* Q: When saving the file, Sublime Text tells me the file is saved as UTF-8, why?
A: Don't worry, the plug-in will convert your file to original encoding.
* Q: My file was saved as UTF-8 and it's in a mess, how can I recover it?
A: Please open the file and make sure its encoding is UTF-8, then choose the menu entry "File > Save with Encoding > Western (Windows 1252)", close and reopen this file.
Contact me
------------------
Please send me your questions or suggestions: sunlxy (at) yahoo.com or http://weibo.com/seanliang
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Sublime Text 3是Sublime Text2的升级版。Sublime Text 是一款流行的文本编辑器软件,有点类似于TextMate,跨平台,可运行在Linux,Windows和Mac OS X。也是许多程序员喜欢使用的一款文本编辑器软件。 Sublime Text 3主要特色: -语法高亮、代码提示补全、代码折叠、自定义皮肤/配色方案、多便签 -代码地图、多种界面布局与全屏免打扰模式 注意:这个版本的package control已经完美解决,可以方便地添加各种插件
资源推荐
资源详情
资源评论
收起资源包目录
Sublime Text 3完整版 (405个子文件)
01524fae79697630d0454ba3fabd9414 2.08MB
Startup.cache 161KB
PHP.tmLanguage.cache 26KB
Matlab.tmLanguage.cache 25KB
Objective-C.tmLanguage.cache 17KB
Meta Info Summary.cache 10KB
D.tmLanguage.cache 8KB
AppleScript.tmLanguage.cache 7KB
Clojure.tmLanguage.cache 7KB
ActionScript.tmLanguage.cache 7KB
Ruby.tmLanguage.cache 7KB
Python.tmLanguage.cache 6KB
JavaScript.tmLanguage.cache 5KB
CSS.tmLanguage.cache 5KB
C.tmLanguage.cache 5KB
OCaml.tmLanguage.cache 5KB
Perl.tmLanguage.cache 4KB
Erlang.tmLanguage.cache 4KB
LaTeX.tmLanguage.cache 4KB
Groovy.tmLanguage.cache 4KB
Shell-Unix-Generic.tmLanguage.cache 3KB
Markdown.tmLanguage.cache 3KB
Go.tmLanguage.cache 3KB
Syntax Summary.cache 3KB
Java.tmLanguage.cache 3KB
Haskell.tmLanguage.cache 3KB
SQL.tmLanguage.cache 2KB
HTML.tmLanguage.cache 2KB
C#.tmLanguage.cache 2KB
ASP.tmLanguage.cache 2KB
TeX Math.tmLanguage.cache 2KB
Scala.tmLanguage.cache 2KB
C++.tmLanguage.cache 2KB
Tcl.tmLanguage.cache 2KB
Ruby on Rails.tmLanguage.cache 2KB
reStructuredText.tmLanguage.cache 2KB
Textile.tmLanguage.cache 2KB
XML.tmLanguage.cache 2KB
JSON.tmLanguage.cache 1KB
Lua.tmLanguage.cache 1KB
OCamllex.tmLanguage.cache 1KB
OCamlyacc.tmLanguage.cache 1KB
JavaDoc.tmLanguage.cache 1KB
YAML.tmLanguage.cache 1KB
Regular Expressions (Python).tmLanguage.cache 1KB
Pascal.tmLanguage.cache 1KB
HTML (Tcl).tmLanguage.cache 1KB
Monokai.tmTheme.cache 1KB
R.tmLanguage.cache 1KB
Bibtex.tmLanguage.cache 1005B
Ruby Haml.tmLanguage.cache 955B
TeX.tmLanguage.cache 927B
DOT.tmLanguage.cache 893B
Diff.tmLanguage.cache 849B
Lisp.tmLanguage.cache 825B
Batch File.tmLanguage.cache 817B
Java Server Pages (JSP).tmLanguage.cache 783B
RegExp.tmLanguage.cache 779B
MultiMarkdown.tmLanguage.cache 686B
LaTeX Log.tmLanguage.cache 683B
Rd (R Documentation).tmLanguage.cache 672B
Indentation Rules.tmPreferences.cache 657B
XSL.tmLanguage.cache 648B
LaTeX Memoir.tmLanguage.cache 637B
HTML (Rails).tmLanguage.cache 597B
Build.tmLanguage.cache 583B
Makefile.tmLanguage.cache 553B
Miscellaneous.tmPreferences.cache 540B
LaTeX Beamer.tmLanguage.cache 536B
HTML (Erlang).tmLanguage.cache 478B
camlp4.tmLanguage.cache 477B
HTML-ASP.tmLanguage.cache 459B
JavaProperties.tmLanguage.cache 457B
Indentation.tmPreferences.cache 457B
JavaScript (Rails).tmLanguage.cache 447B
Miscellaneous.tmPreferences.cache 435B
Indentation Rules.tmPreferences.cache 420B
Literate Haskell.tmLanguage.cache 385B
Indent rules.tmPreferences.cache 380B
Miscellaneous.tmPreferences.cache 378B
Indentation Rules.tmPreferences.cache 376B
Objective-C++.tmLanguage.cache 349B
Widgets.stTheme.cache 348B
Indent.tmPreferences.cache 348B
SQL (Rails).tmLanguage.cache 345B
Indentation Rules.tmPreferences.cache 326B
Miscellaneous.tmPreferences.cache 322B
Symbol List - Heading.tmPreferences.cache 313B
Indentation Rules.tmPreferences.cache 304B
Symbol List.tmPreferences.cache 302B
Miscellaneous.tmPreferences.cache 294B
Template (ERB).tmPreferences.cache 272B
JavaScript Indent.tmPreferences.cache 269B
Miscellaneous.tmPreferences.cache 268B
Comments.tmPreferences.cache 266B
Symbol List - Indent Class Methods.tmPreferences.cache 265B
R Console.tmLanguage.cache 265B
Symbols.tmPreferences.cache 261B
Template (Haml).tmPreferences.cache 252B
Indentation Rules.tmPreferences.cache 249B
共 405 条
- 1
- 2
- 3
- 4
- 5
ThirDragon
- 粉丝: 1
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 探索tecreate:软件开发的未来之星.zip
- 打标机项目C#源码连接扫码
- 基于SSM的房屋租赁系统的设计与实现
- xyctf:从入门到精通的实用指南.zip
- mmqrcode1714153659780.png
- Screenshot_2024-04-27-06-08-58-486_com.baidu.xin.aiqicha.jpg
- 基于Javaweb+Tomcat+MySQL的大学生公寓管理系统+sql文件.zip
- 实训作业基于javaweb的订单管理系统源码+数据库+实训报告.zip
- 多机调度问题贪心算法基于最小堆和贪心算法求解多机调度问题.zip
- 基于同态加密技术的匿名电子投票系统源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页