Skip to content

Commit a06d163

Browse files
authored
Merge pull request MIT-LCP#68 from khertan/patch-1
UnicodeDecodeError when downloading mghdb
2 parents 3019f1a + a7bc5fd commit a06d163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wfdb/readwrite/downloads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def streamheader(recordname, pbdir):
1515
r.raise_for_status()
1616

1717
# Get each line as a string
18-
filelines = r.content.decode('ascii').splitlines()
18+
filelines = r.content.decode('iso-8859-1').splitlines()
1919

2020
# Separate content into header and comment lines
2121
headerlines = []

0 commit comments

Comments
 (0)