Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2410

Mongoexport weird encoding

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Works as Designed
    • None
    • No versions
    • mongoexport
    • None

    Description

      I'm storing some Python code in Mongo and trying to export some of the documents into a json file. I'm using mongoexport, however, in the output file, TABs are replaced by \u0009< by \u003e}}and {{> by \u003c. These characters are preserved when I execute a query from the mongo shell therefore I believe they get messed up during the export process. My question is, is there any setting in mongoexport (possibly encoding) to preserve these characters in the json file?
      I'm using mongo v3.6.3 and this is the command I was trying:
       mongoexport --db runs --collection staged-runs --query '{"field": "value"}' --out test.json --username "uname" --password "passwd"

      Attachments

        Activity

          People

            david.golden@mongodb.com David Golden
            tyukodi.botond@gmail.com Botond Tyukodi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: