Skip to content

Verify that the csv data is saved in UTF-8 format before you import this... #780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions source/administration/import-export.txt
Original file line number Diff line number Diff line change
Expand Up @@ -283,3 +283,20 @@ Use the ":option:`--ignoreBlanks <mongoimport --ignoreBlanks>`" option
to ignore blank fields. For :term:`CSV` and :term:`TSV` imports, this
option provides the desired functionality in most cases: it avoids
inserting blank fields in MongoDB documents.


Note on importing csv data into mongodb:
----------------------------------------

mongodb accepts csv data in UTF-8 format only.

The Microsoft Excel spreadsheet, for one, saves data in ANSI format default.

If you are importing csv data into mongodb from a Microsoft Excel 2007 or later spreadsheet, explicitly choose UTF-8 as the format you want used to save the exported from the Excel spreadsheet.

If you are importing csv data into mongodb from a Microsoft Excel 2003 or earlier spreadsheet, import the csv data from the Excel spreadsheet into Microsoft Notepad. Have Notepad explicitly save this csv data in UTF-8 format.

Im port the csv data saved in UTF-8 mode into mongodb using the mongo import utility.