Announcement Announcement Module
No announcement yet.
MongoDB: special character problem using executeCommand Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • MongoDB: special character problem using executeCommand

    I've got a use case where I want to run scripts on (web) application startup to prefill some collections.
    Some of these scripts contain German special characters (). When I insert the objects in a hard coded way (calling save on a repository instance), I encounter no problem with the characters. But when I try to use executeCommand to insert a whole bunch of objects using the eval command it fails. Without special characters it works. Do I have to escape the special characters somehow?




    A workaround I found: Use ubuntu package mongodb-10gen instead of mongodb with fixed utf8 support.
    Last edited by akrausfs; Mar 22nd, 2012, 02:56 AM. Reason: workaround found