在Excel工作表中,有没有办法打开包含阿拉伯文的csv文件?

问题描述 投票:0回答:1

我使用python创建了一个csv文件,其中包含我从网站上抓取的阿拉伯语行,并在ubuntu libreoffice中按原样显示。但是,当我尝试在MS Excel中打开它时,它会显示垃圾值

行政办公室(完全可以)

س کی مثال بیج کی سی

Excel(垃圾值)

 عمران ظÙر Ûرن Ù¾Ù

有什么方法可以在Excel中获得与Libreoffice相同的价值?

python excel scrapy libreoffice
1个回答
0
投票

这是来自https://help.livehelpnow.net/1/article/45188/viewing-exported-csv-files-containing-arabic-characters

1. Save the exported file as a csv
2. Open Excel
3. Import the data using Data-->Import External Data --> Import Data
4. Select the file type of "csv" and browse to your file
4. In the import wizard change the File_Origin to "65001 UTF" (or choose correct language character identifier)
5. Change the Delimiter to comma
6. Select where to import to and Finish
© www.soinside.com 2019 - 2024. All rights reserved.