django 模版编码问题

写一个简单的页面,前台访问返回

UnicodeDecodeError at /

'utf8' codec can't decode byte 0xd7 in position 132: invalid continuation byte
Request Method:GET
Request URL:http://127.0.0.1:8000/
Django Version:1.8.16
Exception Type:UnicodeDecodeError
Exception Value:
'utf8' codec can't decode byte 0xd7 in position 132: invalid continuation byte
Exception Location:D:\Program Files\Python\Python27\lib\codecs.py in decode, line 314
Python Executable:D:\Program Files\Python\Python27\python.exe
Python Version:2.7.13
Python Path:
['D:\\Program Files\\Python\\project\\django\\djTest',
 'D:\\Program Files\\Python\\Python27\\python27.zip',
 'D:\\Program Files\\Python\\Python27\\DLLs',
 'D:\\Program Files\\Python\\Python27\\lib',
 'D:\\Program Files\\Python\\Python27\\lib\\plat-win',
 'D:\\Program Files\\Python\\Python27\\lib\\lib-tk',
 'D:\\Program Files\\Python\\Python27',
 'D:\\Program Files\\Python\\Python27\\lib\\site-packages',
 'D:\\Program Files\\Python\\Python27\\lib\\site-packages\\dbutils-1.1-py2.7.egg',
 'D:\\Program Files\\Python\\Python27\\lib\\site-packages\\pymysql-0.7.9-py2.7.egg']
Server time:Fri, 24 Feb 2017 11:57:03 +0800

我使用的UE编辑器,讲对应页面文件home.html编码格改为utf-8后正常显示

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值