MongoDB Import Error UTF8 Unexpected Error
Posted on 2013/04/13
Was trying to import a CSV file into Mongo but keep getting the error.
exception:Invalid UTF8 character detected
After a heart racing 30 minutes I found the solution.
iconv -f ISO-8859-1 -t utf-8 a.txt %3E a8.txt
This command simply convert the file to UTF-8. You can then run the normal Mongo Import:
Just remember to change the filenames to your own !
What's currently keeping me busy
Testing and keeping websites safe
Tech/product of new incubating startups
Advocate and educate on the Google Cloud
Easy prescribed book management
Loadshedding being constantly updated and watched
Secret management for PAAS
National microchip database
Youtube channel of edited meetup talks
Gaming Youtube Channel