Sublime Forum

Resolve package have UnicodeEncodeError

#1

I can see default encode is utf-8 in default setting.
but,open command control look for what is default encode.this is ascii.

import sys
sys.getdefaultcoding()

how to resolve this problem?
open sublime_plugin.py(this file in /Applications/Sublime Text 2.app/Contents/MacOS/).
then input this code in the header

import sys 
reload(sys) 
sys.setdefaultencoding('utf8')

run have UnicodeEncodeError package,resolve this problem.

em…I thinks this is one bug.because default encode is utf8.python parse encode don’t utf-8

0 Likes