我试图在我的应用程序中加载一个页面,然后弹出下面的错误。我用tweepy连接twitter。我不知道错误是从哪里来的,也不知道我需要修复的线路。我很想知道如何解决这个问题。在
UnicodeEncodeError at /test/
'charmap' codec can't encode character u'\u2019' in position 6: character maps to <undefined>
Request Method: GET
Request URL: http://127.0.0.1:8000/test/
Django Version: 1.3.1
Exception Type: UnicodeEncodeError
Exception Value: 'charmap' codec can't encode character u'\u2019' in position 6: character maps to <undefined>
Exception Location: C:\Python27\lib\encodings\cp437.py in encode, line 12
Python Executable: C:\Python27\python.exe
Python Version: 2.7.2
在视图.py在
^{pr2}$
停止打印。找出一种不同的调试方法。或者,先编码到UTF-8。在
相关问题 更多 >
编程相关推荐