对应数据库编码

bigzhu posted @ Jul 25, 2007 02:26:00 PM in django , 1274 阅读

在django的settings.py中增加这样一行:

DEFAULT_CHARSET = 'GB2312'

可以指定编码.否则默认是utf-8

数据库又不是这个编码,导致取出来是乱码,改了就好了


Jharkhand 5th Class 说:
Sep 14, 2023 02:58:04 PM

Students of Secondary in the State of Jharkhand Here is the Good news, People those who are looking for the JAC Model Question Paper 2024 are here at the Right place to know more information Jharkhand 5th Class Model Paper 2024 about it, You can also go Through the below Article to have a clear knowledge about the JAC Model 5th Test Paper 2024 for each and every Subject.Jharkhand Board Board Important Question Paper 2024 for Final Examinations with a Good Score, Students Study Throughout the year, Students our Website Refer Study Important Questions in Examination Preparations is to go Through Jharkhand Last year Exam Question Paper 2024 Pdf Format.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter