Home Download Buy Blog Forum Support

Resolve package have UnicodeEncodeError.

Resolve package have UnicodeEncodeError.

Postby Sam Peng on Thu Mar 29, 2012 3:16 am

I can see default encode is utf-8 in default setting.
but,open command control look for what is default encode.this is ascii.
Code: Select all
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
Code: Select all
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
Sam Peng
 
Posts: 6
Joined: Tue Mar 27, 2012 3:28 pm

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 14 guests