import csv file contain arabic data to sqllite

佐手、 提交于 2019-12-11 14:33:55

问题


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:

  1. Open your excel sheet (.xls or .xlsx)
  2. Save it in Unicode Text (.txt) format
  3. Open the text file and change the encoding to UTF-8
  4. Replace the delimiter (which could be Tab delimited) by a comma
  5. Make sure the file is readable and as you expect it to be (you might need a minor manual modification in some cases)
  6. Rename the file back to (.csv)


来源:https://stackoverflow.com/questions/22458074/import-csv-file-contain-arabic-data-to-sqllite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!