Skip to content

Commit

Permalink
mysql编码改为utf8mb4,用来支持emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetree committed Apr 28, 2023
1 parent 2d9b625 commit 8973e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion izone/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
'PASSWORD': MYSQL_PASSWORD, # 数据库的密码
'HOST': MYSQL_HOST,
'PORT': MYSQL_PORT,
'OPTIONS': {'charset': 'utf8mb4'}
'OPTIONS': {'charset': 'utf8mb4', 'use_unicode': True}
}
}

Expand Down

0 comments on commit 8973e5c

Please sign in to comment.