Skip to content

Commit

Permalink
Update tab_csv.go
Browse files Browse the repository at this point in the history
  • Loading branch information
hible committed Aug 8, 2022
1 parent 1b26a8c commit 5afda53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions v3/helper/tab_csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ func (self *CSVFile) Load(fileName string) error {
return err
}

if len(data) > 3 {
if data[0] == 0xef || data[1] == 0xbb || data[2] == 0xbf {
data = data[3:]
}
}

self.Name = strings.TrimSuffix(fileName, filepath.Ext(fileName))

Expand Down

0 comments on commit 5afda53

Please sign in to comment.