Unable to parse file, if first header cell starts with '<' symbol #1238
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#1238
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
<
works just fineThanks for your work. This library is truly
awesome
.When the file starts with
<
the library currently guesses that the file is either HTML or Flat ODS or SpreadsheetML 2003).If you have access to Excel, try saving the contents of that file to
test.csv
andtest.xls
Excel's interpretation is unexpected!
CSV (as you would expect)
XLS (surprising)
It's even more amusing if you put an actual HTML tag in there, like
<table>,New Title.
(blank file)The current behavior is clearly incorrect, but what is the correct behavior?
I would expect to get string
'<Title'
header.I use
parseHeaders
function to get headers from CSV and Excel files wich user can parse from file or link, and subsequently form a payload wich you can see above, but apparently if first header's cell contains symbol<
or any<tag>
, theXLSX.readFile(path)
function can't properly create workbook object.What can You advise on this?
Ran into this problem, too.