导入CSV文件包含阿拉伯语数据sqllite [英] import csv file contain arabic data to sqllite

查看:737
本文介绍了导入CSV文件包含阿拉伯语数据sqllite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有阿拉伯文数据的Excel文件。我怎么能导入此在使用SQLite数据库在Android应用程序?我试图导出为CVS,但Excel不会导出CVS作为UNI code,因此数据无法读取。

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

推荐答案

即使问题已经被问了一段时间,但现在我居然遇到了同样的问题,并按照以下步骤解决它:

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. 打开您的Excel工作表(.xls或.xlsx)格式

  2. 将它保存在统一code文本(.txt)格式

  3. 打开文本文件并更改编码为UTF-8

  4. 由逗号替换分隔符(这可能是制表符分隔)

  5. 确保该文件是可读的,因为你希望它是(你可能需要在某些情况下,一个小手动修改)

  6. 文件重命名回的(.csv)

这篇关于导入CSV文件包含阿拉伯语数据sqllite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆