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

Mongoexport weird encoding

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: No version
    • Component/s: mongoexport
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: