tags:

views:

145

answers:

0

when using the mongodb 1.4.1 version and connect from the shell I have observed this (all running win64)

db.foo.save({_id: "5" , "sub": "\u00f6"})

this seems like the ONLY way to insert a ö http://www.fileformat.info/info/unicode/char/00f6/index.htm

and quite a long way from UTF-8 (hex) 0xC3 0xB6 (c3b6)

so what is the best approach when I have a lot of strings in UTF-8 ? Have I missed something obvious trick to get mongodb to swallow bytes in UTF8 ?