0

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?

  • You need to make sure your data is utf8 on the way in and you're correctly displaying utf8 after you get it out. MongoDB itself defaults to utf8 – pvg Jan 14 '17 at 06:58

1 Answers1

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!