From cbfe98338542f5b65932e265fd496e35e4483fbc Mon Sep 17 00:00:00 2001 From: Vietnhi Phuvan Date: Sat, 23 Mar 2013 14:41:52 -0300 Subject: [PATCH] Verify that the csv data is saved in UTF-8 format before you import this data into mongodb. --- source/administration/import-export.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source/administration/import-export.txt b/source/administration/import-export.txt index 4fa9c95c44e..1403ef56513 100644 --- a/source/administration/import-export.txt +++ b/source/administration/import-export.txt @@ -283,3 +283,20 @@ Use the ":option:`--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. + + +