Bengali-language text not displayed in Unicode CSV file

后端 未结 2 954
萌比男神i
萌比男神i 2020-12-06 11:48

I have an Excel file in the Bengali language. To display the Bengali text properly I need Bengali fonts installed on the PC.

I converted the Excel file into CSV usin

相关标签:
2条回答
  • 2020-12-06 12:18

    According to the answers to the question Excel to CSV with UTF8 encoding, Google Docs should save CSV properly, contrary to Excel, which destroys all characters that are not representable in the “ANSI” encoding being used. But maybe they changed this, or something wrong, or the analysis of the situation is incorrect.

    For properly encoded Bangla (Bengali) processed in MS Office programs, there should be no need for any “Bangla fonts”, since the Arial Unicode MS font (shipped with Office) contains the Bangla characters. So is the data actually in some nonstandard encoding that relies on a specially encoded font? In that case, it should first be converted to Unicode, though possibly it can be somehow managed using programs that consistently use that specific font.

    In Excel, when using Save As, you can select “Unicode text (*.txt)”. It saves the data as TSV (tab-separated values) in UTF-16 encoding. You may then need to convert it to use comma as separator instead of tab, and/or from UTF-16 to UTF-8. But this only works if the original data is properly encoded.

    0 讨论(0)
  • 2020-12-06 12:32

    The same problem also I've faced when I need a CSV file with Bangla Unicode characters and the following method works for me.

    1. Upload your excel file (with Bangla Unicode character) to Google Drive
    2. Now open the uploaded file with Google Sheets
    3. From Google Sheets -> File -> Download As Comma-separated values (CSV, Current sheet)
    4. The downloaded CSV is the desired CSV with Bangla Unicode characters.

    Note: Though the file I've opened with excel shows garbage characters but It's worked for me in web application and shows correct character.

    0 讨论(0)
提交回复
热议问题