如何修复:“UnicodeDecodeError:‘ASCII’编解码器不能解码字节”
as3:~/ngokevin-site# nano content/blog/20140114_test-chinese.mkdas3:~/ngokevin-site# wokTraceback (most recent call last): File "/usr/local/bin/wok", line 4, inEngine()File "/usr/local/lib/python2.7/site-packages/wok/engine.py", line 104, in init self.load_pages()File "/usr/local/lib/python2.7/site-packages/wok/engine.py", line 238, in load_pages p = Page.from_file(os.path.join(root, f), self.options, self, renderer)File "/usr/local/lib/python2.7/site-packages/wok/page.py", line 111, in from_file page.meta['content'] = page.renderer.render(page.original)File "/usr/local/lib/python2.7/site-packages/wok/renderers.py", line 46, in renderreturn markdown(plain, Markdown.plugins)File "/usr/local/lib/python2.7/site-packages/markdown/init.py", line 419, in markdown return md.convert(text)File "/usr/local/lib/python2.7/site-packages/markdown/init.py", line 281, in convert source = unicode(source)UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 1: ordinal not in range(128). -- Note: Markdown only accepts unicode input!
一只甜甜圈
相关分类