How to Store different language(non english) data in MongoDB Field and retrive the same data?
问题 I am tring to store non english(like: Bengali,Hindi) data in a MongoDB field. This is my approach:- import pymongo from pymongo import MongoClient client = MongoClient() db = client.testdb db['testing'].save({'data':'শুভ নববর্ষ'}) I got an Exception. Exception Value: Non-ASCII character '\xe0' in file /test/views.py on line 5, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (views.py, line 5) After that I have tried like this:- from bson import BSON bson