as3:~/ngokevin-site# nano content/blog/20140114_test-chinese.mkd as3:~/ngokevin-site# wok Traceback (most recent call last): File \"/usr/local/bin/wok\", line 4, in
In some cases, when you check your default encoding (print sys.getdefaultencoding()), it returns that you are using ASCII. If you change to UTF-8, it doesn't work, depending on the content of your variable. I found another way:
print sys.getdefaultencoding()
import sys reload(sys) sys.setdefaultencoding('Cp1252')