Sublime Text 3でConvertToUTF8がエラーになる件
こんなエラー
Oops! The file /Users/hentai-kun/Desktop/test.html is detected as EUC-JP which is not supported by your Sublime Text.
Please check whether it is in the list of Python's Standard Encodings (http://docs.python.org/library/codecs.html#standard-encodings) or not.
If yes, please install Codecs33 (https://github.com/seanliang/Codecs33/tree/osx) and restart Sublime Text to make ConvertToUTF8 work properly. If it is still not working, please kindly send the following information to sunlxy (at) yahoo.com:
====== Debug Information ======
Version: 3059-x64
Platform: Darwin-13.3.0-x86_64-i386-64bit
Path: ['/Users/hentai-kun/Library/Application Support/Sublime Text 3/Packages/SublimeCodeIntel/arch', '/Users/hentai-kun/Library/Application Support/Sublime Text 3/Packages/SublimeCodeIntel/libs', '/Applications/Sublime Text.app/Contents/MacOS', '/Applications/Sublime Text.app/Contents/MacOS/python3.3.zip', '/Users/hentai-kun/Library/Application Support/Sublime Text 3/Packages', '/Users/hentai-kun/Library/Application Support/Sublime Text 3/Installed Packages/Emmet.sublime-package', '/Users/hentai-kun/Library/Application Support/Sublime Text 3/Installed Packages/Emmet.sublime-package/emmet_completions', '/Users/hentai-kun/Library/Application Support/Sublime Text 3/Installed Packages/Emmet.sublime-package/emmet', '/Users/hentai-kun/Library/Application Support/Sublime Text 3/Installed Packages/PyV8', '/Users/hentai-kun/Library/Application Support/Sublime Text 3/Installed Packages/PyV8/osx-p3', '/Users/hentai-kun/Library/Application Support/Sublime Text 3/Installed Packages/PyV8/pyv8-osx-p3']
Encoding: EUC-JP
EUC-JPなんてサポートしてないよ!とか言っている。えっ?
解決する
list of Python's Standard Encodings
言われたサイトを確認してみる。
euc_jp eucjp, ujis, u-jis Japanese
あー、確かにEUC-JPは無いですね。でも、HTMLだとEUC-JPと書くことが多くないかな?
Codecs33を入れる
リストにあったら入れてみたら?とのことだけど、リストに無いけど入れてみました。
インストールは提示のURLから落とすように誘導されているような気がしますが、Package Controllからも行えます。
入れたらSublime Text 3を再起動させる。
動いた
エラーは出なくなり、ちゃんと変換できるようになりました。