But when check the records in the REDIS, found that Chinese can't display properly, English no problem,
The CMD command line under win10 next view:
Tried many ways: online
1 redis - cli - raw
2 CHCP 60051, at the same time, change font
.
Are not normally show Chinese, with REDIS visualization tool view, values as all chose again also cannot show Chinese normally,
Finally found that pthon (code specifies the code: # coding: utf8) console print out the result is as follows, also cannot show Chinese:
b '{" __v ": 0," author ":" DIYgod ", "time" : 0.737262, "date" : 1574224965, "text", "\ \ u8001T \ \ u662f \ \ u94c1 \ \ u516c \ \ u9e21", "color" : 16777215, "type" : 0, "IP" : "127.0.0.1", "_id" : "2019112012424522 c72a4c94c3425c93a0889a77c94e9a", "player" : "2"}'
B '{" __v ": 0," author ":" DIYgod ", "time" : 14.319752, "date" : 1574224944, "text", "\ \ u8292 \ \ u679c \ \ u662f \ \ u80a1 \ \ u4ed9", "color" : 16777215, "type" : 0, "IP" : "127.0.0.1", "_id" : "201911201242242 ea6d8b605734558a16e47241e366c03", "player" : "2"}'
B '{" __v ": 0," author ":" DIYgod ", "time" : 10.508851, "date" : 1574224925, "text", "\ \ u8001T \ \ u662f \ \ u80a1 \ \ u795e", "color" : 16777215, "type" : 0, "IP" : "127.0.0.1", "_id" : "2019112012420595 c7fa9283474ed8ba8a8f0cd54160ed", "player" : "2"}'
B '{" __v ": 0," author ":" DIYgod ", "time" : 8.740058, "date" : 1574224753, "text", "\ \ u8089 \ \ u54e5 \ \ u662f \ \ u80a1 \ \ u795e", "color" : 16777215, "type" : 0, "IP" : "127.0.0.1", "_id" : "20191120123913 dcf2aebd397547ae8a7c08c7edb09872", "player" : "2"}'
B '{" __v ": 0," author ":" DIYgod ", "time" : 13.890661, "date" : 1574224715, "text" : "MMMMMMMMMMMMMMM", "color" : 16777215, "type" : 0, "IP" : "127.0.0.1", "_id" : "20191120123835 a924c8080d8e40feae7539d1d4a13b01", "player" : "2"}'
B '{" __v ": 0," author ":" DIYgod ", "time" : 10.957534, "date" : 1574224712, "text" : "NNNNNNNNNNNNNNNNNNN", "color" : 16777215, "type" : 0, "IP" : "127.0.0.1", "_id" : "201911201238320 d0a685f4fbd4e278eb9b5891f6a7016", "player" : "2"}'
B '{" __v ": 0," author ":" DIYgod ", "time" : 7.966033, "date" : 1574224709, "text" : "BBBBBBBBBBBB", "color" : 16777215, "type" : 0, "IP" : "127.0.0.1", "_id" : "2019112012382976 e5e7a1c57f48b8a685b1cf7bac6cb5", "player" : "2"}'
The command line to see the results:
Use visual tools to see the results:
Only show Chinese in the barrage is OK