python3.x - mongodb cannot display Chinese characters, they are all boxes. How to solve it?
黄舟2017-05-02 09:23:56
0
2
707
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!
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
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?