@bjhyyc 在本地测试没问题,上传之后提示:main.py", line 252, in get self.values['page_title'] = str(self.site.title.decode('utf-8')) + u' › ' + str(self.l10n.planes.decode('utf-8')) File "/base/python_runtime/python_dist/lib/python2.5/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)
你也是这样吧?
dimlau
2011-08-11 01:10:51 +08:00
不好意思,上边那段我动过,应该是:
main.py, line 252, in get self.values['page_title'] = self.site.title.decode('utf-8') + u' › ' + self.l10n.planes.decode('utf-8') File "/base/python_runtime/python_dist/lib/python2.5/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)