MongoDB SpiderMonkey doesn't understand UTF-8

luchaninov picture luchaninov · Jun 7, 2011 · Viewed 9.1k times · Source

If I add non-ASCII characters to MongoDB database then all db.find() fail telling "non ascii character detected".

It's problem of SpiderMonkey, I have to rebuild it with UTF-8 support. I've tried to do it like in http://www.mongodb.org/display/DOCS/Building+Spider+Monkey

but it doesn't work (SpiderMonkey is not installed after I've completed all steps).

I've got Ubuntu 11.04. Does anybody have instruction how to make it work there?

Working instruction how to make work MongoDB with Google V8 can also help.

Answer

Jake Jones picture Jake Jones · Jun 8, 2011

I'm using MongoDB on Ubuntu Server 11.04, installed it after making fresh OS install using this instruction: http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages Everything is working fine out of the box. Is it critical for you to build MongoDB from scratch?