I want to add some farsi data into a table in mongoDB, but every character has been showed as a unknown character. how to add farsi data fields into a collection (table) in mongoDB database?
Asked
Active
Viewed 452 times
1 Answers
0
BSON
can only be encoded in UTF-8
! So by default Mongodb stores data in UTF-8.
how do you store data in your Mongo? you've to look for the problem over there!

Mohsen ZareZardeyni
- 936
- 7
- 17
-
I'm new with mongoDB and just wanted to add some farsi data collections into mongoDB from command line. – Jan 14 '17 at 07:11
-
what's your OS? as you may know, Windows cmd doesn't support UTF-8! if you're using linux, you're gonna see the characters, but they're disconnected! – Mohsen ZareZardeyni Jan 14 '17 at 07:13
-
if you only want to play with Mongodb, then use `3T MongoChef`! – Mohsen ZareZardeyni Jan 14 '17 at 07:15