admin管理员组

文章数量:1610842

使用wusgi+nginx部署django后访问报错,查询日志发现错误为“UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 63-71: ordinal not in range(128)”

解决方案:

> apt-get install locales
> dpkg-reconfigure locales

在弹出的界面中,选中en_US.UTF-8和zh_CN.UTF-8 (空格 为选中),然后tab键跳到回车键确认;

进入最终确认页面,显示选中的编码,无误则用tab键选中回车键确认。
完成。

本文标签: 错误CodecASCIIUnicodeEncodeErrorPosition