Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11137

CSV Export with special (swiss) latin chars looking bad in CSV

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • 2.5.2
    • Tools
    • None
    • on MongoHQ Platform

    Description

      Problem:
      We from Switzerland have signs like "Ö", Ü, Ö and those chars are also stored in our fields in our MongoDB

      In our application all works fine with that "special chars". While reading from DB and Saving everything works fine...

      But not in CSV exports.

      I'm exporting my docs successfull to csv over CLI with:
      mongoexport --host xy.mongohq.com --port 10082 --username XY --password XY --db appXY --collection moment --csv --out /Users/millien/Projects/amag/_export/contacts.csv --fields name,email,ip,text,createdAt,isVisible

      In the exported CSV every special sign (Ö,Ä,Ü and others) are replaced with not readable chars like
      Ü = FÌ_nf

      Seems to be an encoding problem.
      Can you help us? Is there a way to set encoding of exports? I didn't find something.

      Thanks and best regards from Switzerland

      Attachments

        Activity

          People

            sverch Shaun Verch
            jackblackch jackblackch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: