问题
I have an excel file with data in arabic. How can I import this in an sqlite database for use in an Android application? I tried to export as CVS, but excel doesn’t export the cvs as unicode, so the data is unreadable
回答1:
Even though the question has been asked for a while now but I actually encountered the same issue and solved it by following the below steps:
- Open your excel sheet (.xls or .xlsx)
- Save it in Unicode Text (.txt) format
- Open the text file and change the encoding to UTF-8
- Replace the delimiter (which could be Tab delimited) by a comma
- Make sure the file is readable and as you expect it to be (you might need a minor manual modification in some cases)
- Rename the file back to (.csv)
来源:https://stackoverflow.com/questions/22458074/import-csv-file-contain-arabic-data-to-sqllite