Skip to content

Commit 4f368de

Browse files
authored
Merge pull request #422 from ISA-tools/proccaserra-patch-2
Update isajson.py
2 parents 964cddf + f09aabe commit 4f368de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

isatools/isajson.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ def check_utf8(fp):
986986
import chardet
987987
with open(fp.name, "rb") as fp:
988988
charset = chardet.detect(fp.read())
989-
if charset["encoding"] != "UTF-8" and charset["encoding"] != "ascii":
989+
if charset["encoding"].upper() != "UTF-8" and charset["encoding"].lower() != "ascii":
990990
warnings.append({
991991
"message": "File should be UTF8 encoding",
992992
"supplemental": "Encoding is '{0}' with confidence {1}".format(charset["encoding"], charset["confidence"]),
@@ -1904,4 +1904,4 @@ def get_data_file(obj):
19041904
return get_protocol(o)
19051905
elif isinstance(o, Characteristic):
19061906
return get_characteristic(o)
1907-
# TODO: enable dump of all objects and add some tests on them
1907+
# TODO: enable dump of all objects and add some tests on them

0 commit comments

Comments
 (0)