question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UTF-8 , how to read chinese excel ?

See original GitHub issue

Hi , anyone know how do I read chinese characters from excel when using " XLSX.read()" ?

var data = e.target.result;
          let readedData = XLSX.read(data, {type: 'binary',blankRows: false,cellDates: true, cellNF: false, cellText: false});
          const wsname = readedData.SheetNames[0];
          const ws = readedData.Sheets[wsname];

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
SheetJSDevcommented, Dec 19, 2020

Can you console.log(data) from your site and share the result (take a screenshot of the console)? If it is working on the official demo but not in your site, it might be an integration issue.

1reaction
SheetJSDevcommented, Dec 19, 2020

Can you share the original file? Older excel formats use a different representation for chinese characters

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you open/import a CSV file with Unicode characters?
1. Open Excel then go to Data Menu · 2. Under Get External Data, click From Text. · 3. Select the CSV file...
Read more >
How do I export an Excel file with Chinese characters to a CSV?
In your Excel worksheet, go to File > Save As. Name the file and choose Unicode Text (*. txt) from the drop-down list...
Read more >
What if Chinese characters don't display correctly when I open ...
In the Text Import Wizard dialog box, select the Delimited file type, and then from the File origin drop-down, select 65001: Unicode (UTF-8)....
Read more >
Can I import an Excel file containing Japanese or Chinese ...
"Calc" is the spreadsheet program in the OpenOffice suite - i.e. their equivalent of Excel. Click "File > Save As", and select "Text...
Read more >
How to Open UTF-8 in Excel - Small Business - Chron.com
How to Open UTF-8 in Excel · 1. Launch Excel and select "Open Other Workbooks" from the opening screen. · 2. Select "Computer,"...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found