国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

python3.x - mongodb cannot display Chinese characters, they are all boxes. How to solve it?
黃舟
黃舟 2017-05-02 09:23:56
0
2
843

Using pycharm IDE, paired with mongodb Explorer, the data is captured and stored in mongodb, but all Chinese characters cannot be displayed, they are all squares. . . I googled and found no similar issues. . Please help me, thank you very much!

黃舟
黃舟

人生最曼妙的風(fēng)景,竟是內(nèi)心的淡定與從容!

reply all(2)
給我你的懷抱

You first output the data to the console to see what it looks like, and then see what encoding your data is.
Check the encoding like this

import chardet
test ="xxx"
print chardet.detect(test)

You should check the encoding of the title in your question before putting it into mongodb.

小葫蘆

Do you see garbled characters in the mongo Shell?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template