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

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

问题描述

我有一个包含阿拉伯语数据的 excel 文件.如何将其导入到 SQLite 数据库中以在 Android 应用程序中使用?我尝试导出为CVS,但是excel没有将cvs导出为unicode,所以数据不可读

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. 将其保存为 Unicode 文本 (.txt) 格式
  3. 打开文本文件并将编码更改为UTF-8
  4. 用逗号替换分隔符(可以是制表符分隔)
  5. 确保文件可读且符合您的预期(在某些情况下您可能需要进行少量的手动修改)
  6. 将文件重命名回 (.csv)

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

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