Finding documents from a collection with non-ASCII collection name returns an empty array

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • 2.0.7
    • Affects Version/s: 2.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When trying to get the documents from the collection with an non-ascii collection name (in this case områder) it returns an empty array even though there are documents in this collection matching the find query.

      var mongo = require('mongodb');
      
      new mongo.MongoClient.connect('mongodb://localhost:27017/test', function(err, db) {
          if (err) throw err 
      
          db.collection('områder').find({}).toArray(function(err, docs) {
            if (err) throw err 
      
            console.log(docs)
      
          }); 
      });
      

            Assignee:
            Christian Amor Kvalheim
            Reporter:
            Hans Kristian
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: