I have emoji stored in varchar column in MYSQL8, with charset utf8mb4 encoding utf8mb4_unicode_ci I am getting the value with peewee and I'm getting?'s instead.
What may I be doing wrong? What else do I have to do to make sure emojis come through intact?
You might try setting charset='utf8mb4
in your db constructor:
MySQLDatabase(..., charset='utf8mb4')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.